QJulianCalendar Class

The QJulianCalendar class provides Julian calendar system implementation. More...

Header: #include <QJulianCalendar>
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 name() const override

Static Public Members

QStringList nameList()

Detailed Description

Julian Calendar

The Julian calendar, proposed by Julius Caesar in 46 BC (708 AUC), was a reform of the Roman calendar. It took effect on 1 January 45 BC (AUC 709), by edict. It was the predominant calendar in the Roman world, most of Europe, and in European settlements in the Americas and elsewhere, until it was refined and gradually replaced by the Gregorian calendar, promulgated in 1582 by Pope Gregory XIII.

The Julian calendar gains against the mean tropical year at the rate of one day in 128 years. For the Gregorian calendar, the figure is one day in 3030 years. The difference in the average length of the year between Julian (365.25 days) and Gregorian (365.2425 days) is 0.002%.

Source: Wikipedia page on Julian Calendar

Member Function Documentation

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

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

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

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

[static] QStringList QJulianCalendar::nameList()

© 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.