Notes on the Solar Hijri calendar
A little reading leads me to learn that there are several variants, so document which this one is; also note the accurate form of the yearLength constant, and fix a mis-indented comment-end. Change-Id: Ia1987dda9f4caee4e52c0cfd894976908c8f4b1a Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>bb10
parent
b06ae63e8f
commit
c30e52e199
|
|
@ -15,8 +15,9 @@ using namespace QRoundingDown;
|
|||
|
||||
constexpr qint64 cycleDays = 1029983;
|
||||
constexpr int cycleYears = 2820;
|
||||
constexpr double yearLength = 365.24219858156028368; // 365 + leapRatio;
|
||||
constexpr double yearLength = 365.24219858156028368; // 365 + 683 / 2820.
|
||||
constexpr qint64 jalaliEpoch = 2121446; // 475/01/01 AP, start of 2820 cycle
|
||||
// This appears to be based on Ahmad Birashk's algorithm.
|
||||
|
||||
// Calendar implementation
|
||||
|
||||
|
|
@ -75,7 +76,7 @@ qint64 firstDayOfYear(int year, int cycleNo)
|
|||
|
||||
Source: \l {https://en.wikipedia.org/wiki/Solar_Hijri_calendar}{Wikipedia
|
||||
page on Solar Hijri Calendar}
|
||||
*/
|
||||
*/
|
||||
|
||||
QString QJalaliCalendar::name() const
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue