Nepomuk
daterange.h
Go to the documentation of this file.
114 };
uint qHash(const DateRange &range)
Allows using DateRange in hashed structures such as QHash or QMap.
static DateRange lastNMonths(int n)
static DateRange lastNDays(int n)
static DateRange today()
static DateRange monthOf(const QDate &date, DateRangeFlags flags=NoDateRangeFlags)
static DateRange weekOf(const QDate &date, DateRangeFlags flags=NoDateRangeFlags)
Takes KLocale::weekStartDay() into account.
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 lastNWeeks(int n)
static DateRange yearOf(const QDate &date, DateRangeFlags flags=NoDateRangeFlags)
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 thisWeek(DateRangeFlags flags=NoDateRangeFlags)
Takes KLocale::weekStartDay() into account.
static DateRange thisYear(DateRangeFlags flags=NoDateRangeFlags)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.