KDECore
kcalendarsystemislamiccivil.cpp
Go to the documentation of this file.
48 virtual QString monthName(int month, int year, KLocale::DateTimeComponentFormat format, bool possessive) const;
54KCalendarSystemIslamicCivilPrivate::KCalendarSystemIslamicCivilPrivate(KCalendarSystemIslamicCivil *q)
74 format = i18nc("(kdedt-format) Hijri, AH, full era year format used for %EY, e.g. 2000 AH", "%Ey %EC");
173QString KCalendarSystemIslamicCivilPrivate::monthName(int month, int year, KLocale::DateTimeComponentFormat format, bool possessive) const
273 return ki18nc("Hijri month 1 - KLocale::LongName Possessive", "of Muharram").toString(locale());
277 return ki18nc("Hijri month 3 - KLocale::LongName Possessive", "of Rabi` al-Awal").toString(locale());
279 return ki18nc("Hijri month 4 - KLocale::LongName Possessive", "of Rabi` al-Thaani").toString(locale());
281 return ki18nc("Hijri month 5 - KLocale::LongName Possessive", "of Jumaada al-Awal").toString(locale());
283 return ki18nc("Hijri month 6 - KLocale::LongName Possessive", "of Jumaada al-Thaani").toString(locale());
291 return ki18nc("Hijri month 10 - KLocale::LongName Possessive", "of Shawwal").toString(locale());
293 return ki18nc("Hijri month 11 - KLocale::LongName Possessive", "of Thu al-Qi`dah").toString(locale());
295 return ki18nc("Hijri month 12 - KLocale::LongName Possessive", "of Thu al-Hijjah").toString(locale());
332QString KCalendarSystemIslamicCivilPrivate::weekDayName(int weekDay, KLocale::DateTimeComponentFormat format) const
402KCalendarSystemIslamicCivil::KCalendarSystemIslamicCivil(const KSharedConfig::Ptr config, const KLocale *locale)
462QString KCalendarSystemIslamicCivil::monthName(int month, int year, MonthNameFormat format) const
477QString KCalendarSystemIslamicCivil::weekDayName(const QDate &date, WeekDayNameFormat format) const
549 Formula from "Explanatory Supplement to the Astronomical Almanac" 2006, derived from Fliegel & Van Flandern 1968
553 int J = ( ( 10985 - L ) / 5316 ) x ( ( 50* L ) / 17719 ) + ( L / 5670 ) * ( ( 43 * L ) / 15238 );
593 Formula from "Explanatory Supplement to the Astronomical Almanac" 2006, derived from Fliegel & Van Flandern 1968
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 kcalendarsystemislamiccivil.cpp:507
virtual int weekDayOfPray() const
Definition kcalendarsystemislamiccivil.cpp:482
virtual QString calendarType() const
Definition kcalendarsystemislamiccivil.cpp:419
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 kcalendarsystemislamiccivil.cpp:569
virtual QString weekDayName(int weekDay, WeekDayNameFormat format=LongDayName) const
Gets specific calendar type week day name.
Definition kcalendarsystemislamiccivil.cpp:472
virtual bool isValid(int year, int month, int day) const
Returns whether a given date is valid in this calendar system.
Definition kcalendarsystemislamiccivil.cpp:442
virtual bool isLunisolar() const
Returns whether the calendar is lunisolar based.
Definition kcalendarsystemislamiccivil.cpp:492
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 kcalendarsystemislamiccivil.cpp:462
virtual QDate earliestValidDate() const
Returns the earliest date valid in this calendar system implementation.
Definition kcalendarsystemislamiccivil.cpp:430
virtual QDate epoch() const
Returns a QDate holding the epoch of the calendar system.
Definition kcalendarsystemislamiccivil.cpp:424
virtual ~KCalendarSystemIslamicCivil()
Definition kcalendarsystemislamiccivil.cpp:415
virtual bool isLunar() const
Returns whether the calendar is lunar based.
Definition kcalendarsystemislamiccivil.cpp:487
virtual bool isSolar() const
Returns whether the calendar is solar based.
Definition kcalendarsystemislamiccivil.cpp:497
virtual bool isLeapYear(int year) const
Returns whether a given year is a leap year.
Definition kcalendarsystemislamiccivil.cpp:452
virtual QDate latestValidDate() const
Returns the latest date valid in this calendar system implementation.
Definition kcalendarsystemislamiccivil.cpp:435
virtual bool isProleptic() const
Returns whether the calendar system is proleptic, i.e.
Definition kcalendarsystemislamiccivil.cpp:502
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
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
friend class KCalendarSystemIslamicCivil
Definition kcalendarsystem.h:1670
virtual QDate latestValidDate() const
Returns the latest date valid in this calendar system implementation.
Definition kcalendarsystem.cpp:1127
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
virtual QString weekDayName(int weekDay, WeekDayNameFormat format=LongDayName) const =0
Gets specific calendar type week day name.
Definition kcalendarsystem.cpp:1881
virtual QDate epoch() const
Returns a QDate holding the epoch of the calendar system.
Definition kcalendarsystem.cpp:1115
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
@ IslamicCivilCalendar
Islamic Civil Calendar, aka Hijri, not the Lunar Calendar.
Definition klocale.h:792
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-2024 The KDE developers.
Generated on Thu Jul 18 2024 00:00:00 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Thu Jul 18 2024 00:00:00 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.