QGregorianCalendar Class

The QGregorianCalendar class implements the Gregorian calendar. More...

Header: #include <QGregorianCalendar>
CMake: find_package(Qt6 REQUIRED COMPONENTS Core)
target_link_libraries(mytarget PRIVATE Qt6::Core)
qmake: QT += core
Since: Qt 5.14
Inherits: QRomanCalendar

Reimplemented Public Functions

virtual bool dateToJulianDay(int year, int month, int day, qint64 *jd) const override
virtual bool isLeapYear(int year) const override
virtual QCalendar::YearMonthDay julianDayToDate(qint64 jd) const override
virtual QString monthName(const QLocale &locale, int month, int year, QLocale::FormatType format) const override
virtual QString name() const override
virtual QString standaloneMonthName(const QLocale &locale, int month, int year, QLocale::FormatType format) const override

Static Public Members

bool julianFromParts(int year, int month, int day, qint64 *jd)
bool leapTest(int year)
int monthLength(int month, int year)
QStringList nameList()
QCalendar::YearMonthDay partsFromJulian(qint64 jd)
bool validParts(int year, int month, int day)
int weekDayOfJulian(qint64 jd)
int yearSharingWeekDays(QDate date)
int yearStartWeekDay(int year)

Detailed Description

The Gregorian Calendar

The Gregorian calendar is a refinement of the earlier Julian calendar, itself a late form of the Roman calendar. It is widely used.

See also QRomanCalendar, QJulianCalendar, and QCalendar.

Member Function Documentation

[override virtual] bool QGregorianCalendar::dateToJulianDay(int year, int month, int day, qint64 *jd) const

[override virtual] bool QGregorianCalendar::isLeapYear(int year) const

[override virtual] QCalendar::YearMonthDay QGregorianCalendar::julianDayToDate(qint64 jd) const

[static] bool QGregorianCalendar::julianFromParts(int year, int month, int day, qint64 *jd)

[static] bool QGregorianCalendar::leapTest(int year)

[static] int QGregorianCalendar::monthLength(int month, int year)

[override virtual] QString QGregorianCalendar::monthName(const QLocale &locale, int month, int year, QLocale::FormatType format) const

[override virtual] QString QGregorianCalendar::name() const

[static] QStringList QGregorianCalendar::nameList()

[static] QCalendar::YearMonthDay QGregorianCalendar::partsFromJulian(qint64 jd)

[override virtual] QString QGregorianCalendar::standaloneMonthName(const QLocale &locale, int month, int year, QLocale::FormatType format) const

[static] bool QGregorianCalendar::validParts(int year, int month, int day)

[static] int QGregorianCalendar::weekDayOfJulian(qint64 jd)

[static] int QGregorianCalendar::yearSharingWeekDays(QDate date)

[static] int QGregorianCalendar::yearStartWeekDay(int year)

© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.