Revision 1188685

Go back to digest for 24th October 2010

Features in KDE Base

John Layt committed changes in /trunk/KDE/kdelibs/kdecore:

KCalendarSystem: Add convenience functions for first/last day of year/month

Add various convenience functions to return the first or last day of the month or year.
It is possible to work these out using the main api, but it's rather long-winded and ugly and easy to get wrong.

Developed in response to a need in Nepomuk, see review on

File Changes

Modified 5 files
  • /trunk/KDE/kdelibs/kdecore
  •   /date/kcalendarsystem.cpp
  •   /date/kcalendarsystem.h
  •   /date/kcalendarsystemprivate_p.h
  •   /tests/kcalendartest.cpp
  •   /tests/kcalendartest.h
5 files changed in total