KDECore
kcalendarsystemjulian.cpp
Go to the documentation of this file.
52 virtual QString monthName(int month, int year, KLocale::DateTimeComponentFormat format, bool possessive) const;
78 KConfigGroup cg(config(), QString::fromLatin1("KCalendarSystem %1").arg(q->calendarType(q->calendarSystem())));
88 format = i18nc("(kdedt-format) Julian, BC, full era year format used for %EY, e.g. 2000 BC", "%Ey %EC");
98 format = i18nc("(kdedt-format) Julian, AD, full era year format used for %EY, e.g. 2000 AD", "%Ey %EC");
182QString KCalendarSystemJulianPrivate::monthName(int month, int year, KLocale::DateTimeComponentFormat format, bool possessive) const
282 return ki18nc("Julian month 1 - KLocale::LongName Possessive", "of January").toString(locale());
284 return ki18nc("Julian month 2 - KLocale::LongName Possessive", "of February").toString(locale());
298 return ki18nc("Julian month 9 - KLocale::LongName Possessive", "of September").toString(locale());
300 return ki18nc("Julian month 10 - KLocale::LongName Possessive", "of October").toString(locale());
302 return ki18nc("Julian month 11 - KLocale::LongName Possessive", "of November").toString(locale());
304 return ki18nc("Julian month 12 - KLocale::LongName Possessive", "of December").toString(locale());
341QString KCalendarSystemJulianPrivate::weekDayName(int weekDay, KLocale::DateTimeComponentFormat format) const
411KCalendarSystemJulian::KCalendarSystemJulian(const KSharedConfig::Ptr config, const KLocale *locale)
virtual bool isLeapYear(int year) const
Returns whether a given year is a leap year.
Definition: kcalendarsystemjulian.cpp:462
virtual bool dateToJulianDay(int year, int month, int day, int &jd) const
Internal method to convert YMD values for this calendar system into a Julian Day number.
Definition: kcalendarsystemjulian.cpp:542
virtual bool isLunisolar() const
Returns whether the calendar is lunisolar based.
Definition: kcalendarsystemjulian.cpp:502
virtual QDate earliestValidDate() const
Returns the earliest date valid in this calendar system implementation.
Definition: kcalendarsystemjulian.cpp:438
virtual bool julianDayToDate(int jd, int &year, int &month, int &day) const
Internal method to convert a Julian Day number into the YMD values for this calendar system.
Definition: kcalendarsystemjulian.cpp:517
virtual QString weekDayName(int weekDay, WeekDayNameFormat format=LongDayName) const
Gets specific calendar type week day name.
Definition: kcalendarsystemjulian.cpp:482
virtual bool isValid(int year, int month, int day) const
Returns whether a given date is valid in this calendar system.
Definition: kcalendarsystemjulian.cpp:452
virtual bool isSolar() const
Returns whether the calendar is solar based.
Definition: kcalendarsystemjulian.cpp:507
virtual ~KCalendarSystemJulian()
Definition: kcalendarsystemjulian.cpp:424
virtual bool isProleptic() const
Returns whether the calendar system is proleptic, i.e.
Definition: kcalendarsystemjulian.cpp:512
virtual int weekDayOfPray() const
Definition: kcalendarsystemjulian.cpp:492
virtual QString calendarType() const
Definition: kcalendarsystemjulian.cpp:428
virtual bool isLunar() const
Returns whether the calendar is lunar based.
Definition: kcalendarsystemjulian.cpp:497
virtual QDate latestValidDate() const
Returns the latest date valid in this calendar system implementation.
Definition: kcalendarsystemjulian.cpp:445
virtual QDate epoch() const
Returns a QDate holding the epoch of the calendar system.
Definition: kcalendarsystemjulian.cpp:433
virtual QString monthName(int month, int year, MonthNameFormat format=LongName) const
Gets specific calendar type month name for a given month number If an invalid month is specified,...
Definition: kcalendarsystemjulian.cpp:472
virtual int latestValidYear() const
Definition: kcalendarsystem.cpp:380
virtual QString monthName(int month, int year, KLocale::DateTimeComponentFormat format, bool possessive=false) const
Definition: kcalendarsystem.cpp:387
virtual bool isLeapYear(int year) const
Definition: kcalendarsystem.cpp:322
virtual KLocale::CalendarSystem calendarSystem() const
Definition: kcalendarsystem.cpp:261
virtual int daysInYear(int year) const
Definition: kcalendarsystem.cpp:304
virtual QString weekDayName(int weekDay, KLocale::DateTimeComponentFormat format) const
Definition: kcalendarsystem.cpp:398
virtual int earliestValidYear() const
Definition: kcalendarsystem.cpp:371
virtual void loadDefaultEraList()
Definition: kcalendarsystem.cpp:269
virtual bool hasYearZero() const
Definition: kcalendarsystem.cpp:348
virtual int daysInMonth(int year, int month) const
Definition: kcalendarsystem.cpp:285
virtual bool hasLeapMonths() const
Definition: kcalendarsystem.cpp:341
virtual int monthsInYear(int year) const
Definition: kcalendarsystem.cpp:277
virtual int maxDaysInWeek() const
Definition: kcalendarsystem.cpp:355
virtual int maxMonthsInYear() const
Definition: kcalendarsystem.cpp:362
KCalendarSystem abstract base class, provides support for local Calendar Systems in KDE.
Definition: kcalendarsystem.h:41
virtual int day(const QDate &date) const
Returns the day portion of a given date in the current calendar system.
Definition: kcalendarsystem.cpp:1357
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
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 isLeapYear(int year) const =0
Returns whether a given year is a leap year.
Definition: kcalendarsystem.cpp:1720
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
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
virtual int month(const QDate &date) const
Returns the month portion of a given date in the current calendar system.
Definition: kcalendarsystem.cpp:1344
KLocale provides support for country specific stuff like the national language.
Definition: klocale.h:70
QString toString() const
Finalizes the translation, creates QString with placeholders substituted.
Definition: klocalizedstring.cpp:192
KLocalizedString ki18nc(const char *ctxt, const char *msg)
Creates localized string from a given message, with added context.
Definition: klocalizedstring.cpp:929
QString i18nc(const char *ctxt, const char *text)
Returns a localized version of a string and a context.
Definition: klocalizedstring.h:797
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.