KDECore
Go to the documentation of this file.
20 #ifndef KLOCALIZEDDATE_H
21 #define KLOCALIZEDDATE_H
23 #include <QtCore/QString>
24 #include <QtCore/QDate>
30 class KLocalizedDatePrivate;
261 bool isValid()
const;
269 bool setDate(
const QDate &date);
283 bool setDate(
int year,
int month,
int day);
293 bool setDate(
int year,
int dayOfYear);
306 bool setDate(
QString eraName,
int yearInEra,
int month,
int day);
329 bool setCurrentDate();
365 int toJulianDay()
const;
386 void getDate(
int *year,
int *month,
int *day)
const;
450 int yearInEra()
const;
462 int dayOfYear()
const;
476 int dayOfWeek()
const;
496 int week(
int *yearNum = 0)
const;
529 int monthsInYear()
const;
543 int weeksInYear()
const;
572 int daysInYear()
const;
582 int daysInMonth()
const;
592 int daysInWeek()
const;
600 bool isLeapYear()
const;
848 bool addYearsTo(
int years);
873 bool addMonthsTo(
int months);
898 bool addDaysTo(
int days);
924 int *yearsDiff,
int *monthsDiff,
int *daysDiff,
int *direction)
const;
949 void dateDifference(
const QDate &toDate,
950 int *yearsDiff,
int *monthsDiff,
int *daysDiff,
int *direction)
const;
980 int yearsDifference(
const QDate &toDate)
const;
1014 int monthsDifference(
const QDate &toDate)
const;
1036 int daysDifference(
const QDate &toDate)
const;
1110 bool operator<(
const QDate &other)
const;
1124 bool operator<=(
const QDate &other)
const;
1138 bool operator>(
const QDate &other)
const;
1152 bool operator>=(
const QDate &other)
const;
1160 QSharedDataPointer<KLocalizedDatePrivate> d;
1171 QDataStream KDECORE_EXPORT &operator<<(QDataStream &out, const
KLocalizedDate &date);
1179 QDataStream KDECORE_EXPORT &operator>>(QDataStream &in,
KLocalizedDate &date);
1187 QDebug KDECORE_EXPORT operator<<(QDebug debug, const
KLocalizedDate &date);
1189 #endif // KLOCALIZEDDATE_H
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Mon Jul 15 2013 05:08:16 by
doxygen 1.8.3.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.