Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qjalalicalendar.cpp File Reference
#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().