Nepomuk
daterange.h
uint qHash(const DateRange &range)
Allows using DateRange in hashed structures such as QHash or QMap.
static DateRange lastNMonths(int n)
static DateRange thisYear(DateRangeFlags flags=NoDateRangeFlags)
static DateRange lastNWeeks(int n)
static DateRange monthOf(const QDate &date, DateRangeFlags flags=NoDateRangeFlags)
static DateRange yearOf(const QDate &date, DateRangeFlags flags=NoDateRangeFlags)
static DateRange thisWeek(DateRangeFlags flags=NoDateRangeFlags)
Takes KLocale::weekStartDay() into account.
DateRangeFlag
The flags allow to change the result returned by several of the static factory methods provided by Da...
Definition: daterange.h:102
static DateRange weekOf(const QDate &date, DateRangeFlags flags=NoDateRangeFlags)
Takes KLocale::weekStartDay() into account.
static DateRange lastNDays(int n)
static DateRange thisMonth(DateRangeFlags flags=NoDateRangeFlags)
bool isValid() const
Checks if both start and end are valid dates and if end is after start.
static DateRange today()
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Thu Aug 27 2020 00:00:00 by doxygen 1.8.20 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Thu Aug 27 2020 00:00:00 by doxygen 1.8.20 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.