KDECore
kcalendarsystem.cpp
Go to the documentation of this file.
87 KCalendarSystem *KCalendarSystem::create(KLocale::CalendarSystem calendarSystem, const KLocale *locale)
146 QString KCalendarSystem::calendarLabel(KLocale::CalendarSystem calendarSystem, const KLocale *locale)
178 KLocale::CalendarSystem KCalendarSystem::calendarSystemForCalendarType(const QString &calendarType )
271 addEra('-', 1, q->epoch().addDays(-1), -1, q->earliestValidDate(), QLatin1String("Before KDE"), QLatin1String("BK"), QLatin1String("%Ey %EC"));
272 addEra('+', 1, q->epoch(), 1, q->latestValidDate(), QLatin1String("Anno KDE"), QLatin1String("AK"), QLatin1String("%Ey %EC"));
387 QString KCalendarSystemPrivate::monthName(int month, int year, KLocale::DateTimeComponentFormat format, bool possessive) const
398 QString KCalendarSystemPrivate::weekDayName(int weekDay, KLocale::DateTimeComponentFormat format) const
406 int KCalendarSystemPrivate::week(const QDate &date, KLocale::WeekNumberSystem weekNumberSystem, int *yearNum) const
482 int KCalendarSystemPrivate::regularWeekNumber(const QDate &date, int weekStartDay, int firstWeekNumber, int *weekYear) const
519 int KCalendarSystemPrivate::weeksInYear(int year, KLocale::WeekNumberSystem weekNumberSystem) const
553 int KCalendarSystemPrivate::regularWeeksInYear(int year, int weekStartDay, int firstWeekNumber) const
565 // Works for calendars with constant number of months, or where leap month is last month of year
750 int KCalendarSystemPrivate::integerFromString(const QString &string, int maxLength, int &readLength) const
781 QString KCalendarSystemPrivate::stringFromInteger(int number, int padWidth, QChar padChar) const
788 QString KCalendarSystemPrivate::stringFromInteger(int number, int padWidth, QChar padChar, KLocale::DigitSet digitSet) const
793 return q->locale()->convertDigits(QString::number(number).rightJustified(padWidth, padChar), digitSet);
823 // Utility to correctly return number of years between two year numbers because some systems such as
1067 KConfigGroup calendarGroup = localeGroup.group(QString::fromLatin1("KCalendarSystem %1").arg(calendarType));
1087 KCalendarSystem::KCalendarSystem(KCalendarSystemPrivate &dd, const KSharedConfig::Ptr config, const KLocale *locale)
1263 bool KCalendarSystem::setDate(QDate &date, QString eraName, int yearInEra, int month, int day) const
1272 bool KCalendarSystem::setDateIsoWeek(QDate &date, int year, int isoWeekNumber, int dayOfIsoWeek) const
1597 int KCalendarSystem::weeksInYear(const QDate &date, KLocale::WeekNumberSystem weekNumberSystem) const
1709 int KCalendarSystem::week(const QDate &date, KLocale::WeekNumberSystem weekNumberSystem, int *yearNum) const
1842 QString KCalendarSystem::monthName(int month, int year, KCalendarSystem::MonthNameFormat format) const
1881 QString KCalendarSystem::weekDayName(int weekDay, KCalendarSystem::WeekDayNameFormat format) const
2099 QString KCalendarSystem::formatDate(const QDate &fromDate, const QString &toFormat, KLocale::DigitSet digitSet,
2354 QDate KCalendarSystem::readDate(const QString &str, KLocale::ReadDateFlags flags, bool *ok) const
2372 QDate KCalendarSystem::readDate(const QString &inputString, const QString &formatString, bool *ok) const
2378 QDate KCalendarSystem::readDate(const QString &inputString, const QString &formatString, bool *ok,
2382 QDate resultDate = parser.parseDate(inputString, formatString, this, locale(), locale()->dateTimeDigitSet(), formatStandard);
2412 // The implementation MUST NOT do validity checking on date ranges, all calls to this function MUST
2413 // instead be wrapped in validity checks, as sometimes we want this to work outside the public valid
2414 // range, i.e. to allow us to internally set dates of 1/1/10000 which are not publically valid but
2444 // The implementation MUST NOT do validity checking on date ranges, all calls to this function MUST
2445 // instead be wrapped in validity checks, as sometimes we want this to work outside the public valid
2446 // range, i.e. to allow us to internally set dates of 1/1/10000 which are not publically valid but
Only accept a date string in ISO date format (YYYY-MM-DD)
Definition: klocale.h:1254
The Day Of Week / Weekday portion of a date, may be number or name.
Definition: klocale.h:878
QList< KCalendarEra > * m_eraList
Definition: kcalendarsystemprivate_p.h:107
QString i18n(const char *text)
Returns a localized version of a string.
Definition: klocalizedstring.h:630
int daysTo(const QDate &d) const
Long name possessive format, e.g.
Definition: kcalendarsystem.h:59
KCalendarEra era(const QDate &eraDate) const
Definition: kcalendarsystem.cpp:922
QString eraName(const QDate &date, StringFormat format=ShortFormat) const
Definition: kcalendarsystem.cpp:1371
QString weeksInYearString(const QDate &pDate, StringFormat format=LongFormat) const
Definition: kcalendarsystem.cpp:1983
QString & append(QChar ch)
virtual QString calendarType() const =0
int applyShortYearWindow(int inputYear) const
Definition: kcalendarsystem.cpp:1029
virtual int week(const QDate &date, KLocale::WeekNumberSystem weekNumberSystem, int *yearNum) const
Definition: kcalendarsystem.cpp:406
QString monthsInYearString(const QDate &pDate, StringFormat format=LongFormat) const
Definition: kcalendarsystem.cpp:1973
QString toString() const
Finalizes the translation, creates QString with placeholders substituted.
Definition: klocalizedstring.cpp:192
virtual bool isLeapYear(int year) const =0
Returns whether a given year is a leap year.
Definition: kcalendarsystem.cpp:1720
bool setDateIsoWeek(QDate &date, int year, int isoWeekNumber, int dayOfIsoWeek) const
Definition: kcalendarsystem.cpp:1272
virtual int earliestValidYear() const
Definition: kcalendarsystem.cpp:371
Date/times with associated time zone.
KCalendarSystemPrivate(KCalendarSystem *q)
Definition: kcalendarsystem.cpp:247
Japanese Calendar, Gregorian calculation using Japanese Era (Nengô)
Definition: klocale.h:799
virtual int monthStringToInteger(const QString &sNum, int &iLength) const
Definition: kcalendarsystem.cpp:2036
virtual int regularWeekNumber(const QDate &date, int weekStartDay, int firstWeekNumber, int *weekYear) const
Definition: kcalendarsystem.cpp:482
int addYears(int startYear, int yearsToAdd) const
Definition: kcalendarsystem.cpp:808
virtual QString monthName(int month, int year, MonthNameFormat format=LongName) const =0
Gets specific calendar type month name for a given month number If an invalid month is specified...
Definition: kcalendarsystem.cpp:1842
static QStringList calendarSystems()
Definition: kcalendarsystem.cpp:58
virtual bool julianDayToDate(int jd, int &year, int &month, int &day) const =0
Internal method to convert a Julian Day number into the YMD values for this calendar system...
Definition: kcalendarsystem.cpp:2416
virtual int simpleWeekNumber(const QDate &date, int *yearNum) const
Definition: kcalendarsystem.cpp:508
virtual int monthsDifference(const QDate &fromDate, const QDate &toDate) const
Definition: kcalendarsystem.cpp:703
virtual void loadDefaultEraList()
Definition: kcalendarsystem.cpp:269
friend class KCalendarSystemEthiopian
Definition: kcalendarsystem.h:1666
virtual int regularWeeksInYear(int year, int weekStartDay, int firstWeekNumber) const
Definition: kcalendarsystem.cpp:553
virtual int integerFromString(const QString &string, int maxLength, int &readLength) const
Definition: kcalendarsystem.cpp:750
Week 1 starts on the first Week Start Day in year ends after 7 days.
Definition: klocale.h:818
QString name(KLocale::DateTimeComponentFormat format=KLocale::DefaultComponentFormat) const
Definition: kcalendarera.cpp:55
KSharedConfig::Ptr m_config
Definition: kcalendarsystemprivate_p.h:106
virtual int weekStartDay() const
Use this to determine which day is the first day of the week.
Definition: kcalendarsystem.cpp:2405
const T & at(int i) const
QDate lastDayOfYear(int year) const
Definition: kcalendarsystem.cpp:1755
void setMaxMonthsInYear(int maxMonths)
Definition: kcalendarsystem.cpp:2487
KCalendarSystem(const KLocale *locale=0)
Constructor of abstract calendar class.
Definition: kcalendarsystem.cpp:1073
QString simplified() const
virtual int monthsInYear(int year) const
Definition: kcalendarsystem.cpp:277
QDate lastDayOfMonth(int year, int month) const
Definition: kcalendarsystem.cpp:1803
virtual bool setYMD(QDate &date, int y, int m, int d) const
Definition: kcalendarsystem.cpp:1301
friend class KCalendarSystemThai
Definition: kcalendarsystem.h:1676
virtual int day(const QDate &date) const
Returns the day portion of a given date in the current calendar system.
Definition: kcalendarsystem.cpp:1357
KConfigGroup group(const QByteArray &group)
Returns an object for the named subgroup.
Definition: kconfigbase.cpp:44
The Day Of Week Name / Weekday Name portion of a date.
Definition: klocale.h:879
virtual QDate earliestValidDate() const
Returns the earliest date valid in this calendar system implementation.
Definition: kcalendarsystem.cpp:1120
The system locale default for the componant.
Definition: klocale.h:909
Coptic Calendar as used Coptic Church and some parts of Egypt.
Definition: klocale.h:785
KLocale::CalendarSystem calendarSystem() const
Definition: kcalendarsystem.cpp:1100
virtual int daysInWeek(const QDate &date) const
Returns the number of days in the given week.
Definition: kcalendarsystem.cpp:1668
void loadConfig(const QString &calendarType)
Definition: kcalendarsystem.cpp:1064
virtual int weekNumber(const QDate &date, int *yearNum=0) const
Definition: kcalendarsystem.cpp:1697
StringFormat
Format for returned year number / month number / day number as string.
Definition: kcalendarsystem.h:47
virtual int maxMonthsInYear() const
Definition: kcalendarsystem.cpp:362
static KCalendarSystem * create(const QString &calType=QLatin1String("gregorian"), const KLocale *locale=0)
Definition: kcalendarsystem.cpp:47
int applyShortYearWindow(int inputYear) const
Definition: kcalendarsystem.cpp:2398
friend class KCalendarSystemIslamicCivil
Definition: kcalendarsystem.h:1670
QString dayOfWeekString(const QDate &pDate) const
Definition: kcalendarsystem.cpp:1957
friend class KCalendarSystemIndianNational
Definition: kcalendarsystem.h:1669
Definition: kdatetimeparser_p.h:49
KCalendarSystem abstract base class, provides support for local Calendar Systems in KDE...
Definition: kcalendarsystem.h:40
Definition: kdatetimeformatter_p.h:34
QString i18nc(const char *ctxt, const char *text)
Returns a localized version of a string and a context.
Definition: klocalizedstring.h:797
virtual int daysInYear(int year) const
Definition: kcalendarsystem.cpp:304
virtual int daysInWeek() const
Definition: kcalendarsystem.cpp:315
QString convertDigits(const QString &str, DigitSet digitSet, bool ignoreContext=false) const
Definition: klocale.cpp:212
Indian National Calendar, not the Lunar Calendar.
Definition: klocale.h:794
friend class KCalendarSystemHebrew
Definition: kcalendarsystem.h:1668
QString number(int n, int base)
int count(const T &value) const
void append(const T &value)
virtual int dayOfYear(const QDate &date) const
Returns the day number of year for the given date.
Definition: kcalendarsystem.cpp:1675
Definition: kcalendarera_p.h:43
virtual QDate epoch() const
Returns a QDate holding the epoch of the calendar system.
Definition: kcalendarsystem.cpp:1115
Minguo Calendar, aka ROC, Republic of China or Taiwanese.
Definition: klocale.h:802
virtual QString formatDate(const QDate &fromDate, KLocale::DateFormat toFormat=KLocale::LongDate) const
Returns a string formatted to the current locale's conventions regarding dates.
Definition: kcalendarsystem.cpp:2048
virtual int monthsInYear(const QDate &date) const
Returns number of months in the given year.
Definition: kcalendarsystem.cpp:1563
bool isNull() const
bool exists() const
Check whether the containing KConfig object acutally contains a group with this name.
Definition: kconfiggroup.cpp:588
QDate lastDayOfMonth(int year, int month) const
Definition: kcalendarsystem.cpp:900
virtual int simpleWeeksInYear(int year) const
Definition: kcalendarsystem.cpp:559
Week 1 starts Jan 1st ends day before first Week Start Day in year.
Definition: klocale.h:819
Jalali Calendar, aka Persian or Iranian, also used in Afghanistan.
Definition: klocale.h:796
virtual int weeksInYear(const QDate &date) const
Returns the number of localized weeks in the given year.
Definition: kcalendarsystem.cpp:1586
int toJulianDay() const
int toInt(bool *ok, int base) const
bool isEmpty() const
bool isEmpty() const
virtual QDate parseDate(const QString &dateString, const QString &format, const KCalendarSystem *calendar=KGlobal::locale() ->calendar(), const KLocale *locale=KGlobal::locale(), KLocale::DigitSet digitSet=KLocale::ArabicDigits, KLocale::DateTimeFormatStandard standard=KLocale::KdeFormat) const
Definition: kdatetimeparser.cpp:37
The Day Of Year portion of a date, may be number or name.
Definition: klocale.h:876
QString yearInEraString(const QDate &date, StringFormat format=ShortFormat) const
Definition: kcalendarsystem.cpp:1937
bool startsWith(const QString &s, Qt::CaseSensitivity cs) const
virtual QString dayString(const QDate &pDate, StringFormat format=LongFormat) const
Definition: kcalendarsystem.cpp:1927
KDE Default, hybrid of Gregorian and Julian as used by QDate.
Definition: klocale.h:781
bool isValid() const
virtual int month(const QDate &date) const
Returns the month portion of a given date in the current calendar system.
Definition: kcalendarsystem.cpp:1344
int m_shortYearWindowStartYear
Definition: kcalendarsystemprivate_p.h:108
friend class KCalendarSystemGregorian
Definition: kcalendarsystem.h:1667
int yearsDifference(const QDate &fromDate, const QDate &toDate) const
Returns the difference between two dates in completed calendar years.
Definition: kcalendarsystem.cpp:1530
void dateDifference(const QDate &fromDate, const QDate &toDate, int *yearsDiff, int *monthsDiff, int *daysDiff, int *direction) const
Returns the difference between two dates in years, months and days.
Definition: kcalendarsystem.cpp:1519
Definition: kaboutdata.h:33
virtual QString stringFromInteger(int number, int padWidth=0, QChar padChar=QLatin1Char('0')) const
Definition: kcalendarsystem.cpp:781
virtual bool hasLeapMonths() const
Definition: kcalendarsystem.cpp:341
const KLocale * locale() const
Returns the locale used for translations and formats for this calendar system instance.
Definition: kcalendarsystem.cpp:2479
Short name possessive format, e.g.
Definition: kcalendarsystem.h:58
Only accept a date string in ISO Week date format (YYYY-Www-D)
Definition: klocale.h:1256
Gregorian Calendar, pure proleptic implementation.
Definition: klocale.h:788
virtual bool isValid(int year, int month, int day) const =0
Returns whether a given date is valid in this calendar system.
Definition: kcalendarsystem.cpp:1133
QString toLower() const
int monthsDifference(const QDate &fromDate, const QDate &toDate) const
Returns the difference between two dates in completed calendar months The returned value will be nega...
Definition: kcalendarsystem.cpp:1542
friend class KCalendarSystemMinguo
Definition: kcalendarsystem.h:1674
QDate firstDayOfMonth(int year, int month) const
Definition: kcalendarsystem.cpp:893
QString eraYear(const QDate &date, StringFormat format=ShortFormat) const
Definition: kcalendarsystem.cpp:1387
bool setAnyDate(QDate &date, int year, int month, int day) const
Definition: kcalendarsystem.cpp:798
virtual int maxDaysInWeek() const
Definition: kcalendarsystem.cpp:355
char toLatin1() const
int shortYearWindowStartYear() const
Definition: kcalendarsystem.cpp:2390
virtual int yearStringToInteger(const QString &sNum, int &iLength) const
Definition: kcalendarsystem.cpp:2018
QList< KCalendarEra > * eraList() const
Definition: kcalendarsystem.cpp:917
bool hasKey(const QString &key) const
Checks whether the key has an entry in this group.
Definition: kconfiggroup.cpp:1155
void setMaxDaysInWeek(int maxDays)
Definition: kcalendarsystem.cpp:2493
int differenceYearNumbers(int fromYear, int toYear) const
Definition: kcalendarsystem.cpp:825
virtual QDate latestValidDate() const
Returns the latest date valid in this calendar system implementation.
Definition: kcalendarsystem.cpp:1127
virtual int year(const QDate &date) const
Returns the year portion of a given date in the current calendar system.
Definition: kcalendarsystem.cpp:1331
virtual bool hasYearZero() const
Definition: kcalendarsystem.cpp:348
int dayOfWeek(const QDate &date) const
Definition: kcalendarsystem.cpp:869
virtual ~KCalendarSystemPrivate()
Definition: kcalendarsystem.cpp:254
static QDate currentLocalDate()
Returns the current date in the local time zone, as reported by the system clock. ...
Definition: kdatetime.cpp:1280
int yearInEra(const QDate &date) const
Definition: kcalendarsystem.cpp:1400
virtual bool dateToJulianDay(int year, int month, int day, int &jd) const =0
Internal method to convert YMD values for this calendar system into a Julian Day number.
Definition: kcalendarsystem.cpp:2448
virtual int weeksInYear(int year, KLocale::WeekNumberSystem weekNumberSystem) const
Definition: kcalendarsystem.cpp:519
virtual QString monthName(int month, int year, KLocale::DateTimeComponentFormat format, bool possessive=false) const
Definition: kcalendarsystem.cpp:387
virtual int latestValidYear() const
Definition: kcalendarsystem.cpp:380
virtual QDate readDate(const QString &str, bool *ok=0) const
Converts a localized date string to a QDate.
Definition: kcalendarsystem.cpp:2333
virtual int daysInMonth(int year, int month) const
Definition: kcalendarsystem.cpp:285
virtual QDate addMonths(const QDate &date, int nmonths) const
Returns a QDate containing a date nmonths months later.
Definition: kcalendarsystem.cpp:1463
QString mid(int position, int n) const
virtual void dateDifference(const QDate &fromDate, const QDate &toDate, int *yearsDiff, int *monthsDiff, int *daysDiff, int *direction) const
Definition: kcalendarsystem.cpp:567
virtual int daysInYear(const QDate &date) const
Returns the number of days in the given year.
Definition: kcalendarsystem.cpp:1620
KLocale provides support for country specific stuff like the national language.
Definition: klocale.h:69
virtual QString weekDayName(int weekDay, KLocale::DateTimeComponentFormat format) const
Definition: kcalendarsystem.cpp:398
QString daysInMonthString(const QDate &pDate, StringFormat format=LongFormat) const
Definition: kcalendarsystem.cpp:2003
Only accept a date string in the locale LongDate format.
Definition: klocale.h:1250
QDate lastDayOfYear(int year) const
Definition: kcalendarsystem.cpp:885
QString daysInYearString(const QDate &pDate, StringFormat format=LongFormat) const
Definition: kcalendarsystem.cpp:1993
virtual QString monthString(const QDate &pDate, StringFormat format=LongFormat) const
Definition: kcalendarsystem.cpp:1918
QDate firstDayOfMonth(int year, int month) const
Definition: kcalendarsystem.cpp:1791
QDate firstDayOfYear(int year) const
Definition: kcalendarsystem.cpp:878
int week(const QDate &date, int *yearNum=0) const
Returns the localized Week Number for the date.
Definition: kcalendarsystem.cpp:1703
const QChar at(int position) const
KLocalizedString ki18nc(const char *ctxt, const char *msg)
Creates localized string from a given message, with added context.
Definition: klocalizedstring.cpp:929
friend class KCalendarSystemCoptic
Definition: kcalendarsystem.h:1665
virtual QString yearString(const QDate &date, StringFormat format=LongFormat) const
Definition: kcalendarsystem.cpp:1909
void loadEraList(const KConfigGroup &cg)
Definition: kcalendarsystem.cpp:946
virtual KLocale::CalendarSystem calendarSystem() const
Definition: kcalendarsystem.cpp:261
int length() const
QString weekNumberString(const QDate &pDate, StringFormat format=LongFormat) const
Definition: kcalendarsystem.cpp:1963
int weekStartDay() const
Use this to determine which day is the first day of the week.
Definition: klocale.cpp:227
QString section(QChar sep, int start, int end, QFlags< QString::SectionFlag > flags) const
QString fromLatin1(const char *str, int size)
Only accept a date string in ISO Week date format (YYYY-DDD)
Definition: klocale.h:1258
void loadShortYearWindowStartYear(const KConfigGroup &cg)
Definition: kcalendarsystem.cpp:1044
static KLocale::CalendarSystem calendarSystemForCalendarType(const QString &calendarType)
Definition: kcalendarsystem.cpp:178
virtual QDate addYears(const QDate &date, int nyears) const
Returns a QDate containing a date nyears years later.
Definition: kcalendarsystem.cpp:1435
virtual bool isLeapYear(int year) const
Definition: kcalendarsystem.cpp:322
QDate addDays(int ndays) const
virtual int dayStringToInteger(const QString &sNum, int &iLength) const
Definition: kcalendarsystem.cpp:2042
friend class KCalendarSystemQDate
Definition: kcalendarsystem.h:1675
QDate fromJulianDay(int jd)
virtual QDate addDays(const QDate &date, int ndays) const
Returns a QDate containing a date ndays days later.
Definition: kcalendarsystem.cpp:1502
friend class KCalendarSystemJalali
Definition: kcalendarsystem.h:1671
virtual int isoWeekNumber(const QDate &date, int *yearNum) const
Definition: kcalendarsystem.cpp:427
int daysDifference(const QDate &fromDate, const QDate &toDate) const
Returns the difference between two dates in days The returned value will be negative if fromDate > to...
Definition: kcalendarsystem.cpp:1554
int dayOfYear(const QDate &date) const
Definition: kcalendarsystem.cpp:860
QDate firstDayOfYear(int year) const
Definition: kcalendarsystem.cpp:1743
virtual int isoWeeksInYear(int year) const
Definition: kcalendarsystem.cpp:537
virtual int yearsDifference(const QDate &fromDate, const QDate &toDate) const
Definition: kcalendarsystem.cpp:653
int shortYearWindowStartYear() const
Definition: kcalendarsystem.cpp:1024
friend class KCalendarSystemJapanese
Definition: kcalendarsystem.h:1672
bool isValidIsoWeekDate(int year, int isoWeekNumber, int dayOfIsoWeek) const
Definition: kcalendarsystem.cpp:1171
void getDate(const QDate date, int *year, int *month, int *day) const
Definition: kcalendarsystem.cpp:1307
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
virtual QString formatDate(const QDate &fromDate, const QString &toFormat, const KCalendarSystem *calendar=KGlobal::locale() ->calendar(), const KLocale *locale=KGlobal::locale(), KLocale::DigitSet digitSet=KGlobal::locale() ->dateTimeDigitSet(), KLocale::DateTimeFormatStandard standard=KLocale::KdeFormat) const
Definition: kdatetimeformatter.cpp:47
virtual bool setDate(QDate &date, int year, int month, int day) const
Changes the date's year, month and day.
Definition: kcalendarsystem.cpp:1222
T readEntry(const QString &key, const T &aDefault) const
Reads the value of an entry specified by pKey in the current group.
Definition: kconfiggroup.h:248
QString simpleDateString(const QString &str) const
Definition: kcalendarsystem.cpp:846
virtual int dayOfWeek(const QDate &date) const
Returns the weekday number for the given date.
Definition: kcalendarsystem.cpp:1686
friend class KCalendarSystemJulian
Definition: kcalendarsystem.h:1673
virtual QString weekDayName(int weekDay, WeekDayNameFormat format=LongDayName) const =0
Gets specific calendar type week day name.
Definition: kcalendarsystem.cpp:1881
Only accept a date string in the locale ShortDate format.
Definition: klocale.h:1252
QString daysInWeekString(const QDate &date) const
Definition: kcalendarsystem.cpp:2013
QString dayOfYearString(const QDate &pDate, StringFormat format=LongFormat) const
Definition: kcalendarsystem.cpp:1947
Islamic Civil Calendar, aka Hijri, not the Lunar Calendar.
Definition: klocale.h:792
static QList< KLocale::CalendarSystem > calendarSystemsList()
Definition: kcalendarsystem.cpp:126
bool isLetterOrNumber() const
virtual int daysInMonth(const QDate &date) const
Returns the number of days in the given month.
Definition: kcalendarsystem.cpp:1643
void addEra(char direction, int offset, const QDate &startDate, int startYear, const QDate &endDate, const QString &name, const QString &shortName, const QString &format)
Definition: kcalendarsystem.cpp:1000
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:10 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:10 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.