Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qjalalicalendar.cpp File Reference

(c30e52e199c31ccb0a61b4c9d742e6b2fcb2c5d0)

#include "qglobal.h"
#include "qjalalicalendar_p.h"
#include "qjalalicalendar_data_p.h"
#include "qcalendarmath_p.h"
#include <QtCore/qmath.h>
+ Include dependency graph for qjalalicalendar.cpp:

Go to the source code of this file.

Functions

static int cycle (qint64 jdn)
 
qint64 cycleStart (int cycleNo)
 
qint64 firstDayOfYear (int year, int cycleNo)
 

Variables

constexpr qint64 cycleDays = 1029983
 
constexpr int cycleYears = 2820
 
constexpr double yearLength = 365.24219858156028368
 
constexpr qint64 jalaliEpoch = 2121446
 

Function Documentation

◆ cycle()

static int cycle ( qint64 jdn)
inlinestatic

Definition at line 24 of file qjalalicalendar.cpp.

References jalaliEpoch.

Referenced by QJalaliCalendar::julianDayToDate().

+ Here is the caller graph for this function:

◆ cycleStart()

qint64 cycleStart ( int cycleNo)

Definition at line 29 of file qjalalicalendar.cpp.

References cycleDays, and jalaliEpoch.

Referenced by QJalaliCalendar::julianDayToDate().

+ Here is the caller graph for this function:

◆ firstDayOfYear()

qint64 firstDayOfYear ( int year,
int cycleNo )

Definition at line 34 of file qjalalicalendar.cpp.

References cycleDays, jalaliEpoch, qFloor(), and yearLength.

Referenced by QJalaliCalendar::dateToJulianDay(), and QJalaliCalendar::julianDayToDate().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ cycleDays

constexpr qint64 cycleDays = 1029983
constexpr

Definition at line 16 of file qjalalicalendar.cpp.

Referenced by cycleStart(), and firstDayOfYear().

◆ cycleYears

constexpr int cycleYears = 2820
constexpr

◆ jalaliEpoch

constexpr qint64 jalaliEpoch = 2121446
constexpr

Definition at line 19 of file qjalalicalendar.cpp.

Referenced by cycle(), cycleStart(), and firstDayOfYear().

◆ yearLength

constexpr double yearLength = 365.24219858156028368
constexpr

Definition at line 18 of file qjalalicalendar.cpp.

Referenced by firstDayOfYear(), and QJalaliCalendar::julianDayToDate().