132#define GREGOR_SDN_OFFSET 32045
133#define DAYS_PER_5_MONTHS 153
134#define DAYS_PER_4_YEARS 1461
135#define DAYS_PER_400_YEARS 146097
174 temp = dayOfYear * 5 - 3;
211 if (inputYear == 0 || inputYear < -4714 ||
212 inputMonth <= 0 || inputMonth > 12 ||
213 inputDay <= 0 || inputDay > 31) {
217 if (inputYear == -4714) {
218 if (inputMonth < 11) {
221 if (inputMonth == 11 && inputDay < 25) {
227 year = inputYear + 4801;
229 year = inputYear + 4800;
233 if (inputMonth > 2) {
234 month = inputMonth - 3;
236 month = inputMonth + 9;
const char *const MonthNameShort[13]
#define DAYS_PER_400_YEARS
zend_long GregorianToSdn(int inputYear, int inputMonth, int inputDay)
void SdnToGregorian(zend_long sdn, int *pYear, int *pMonth, int *pDay)
#define GREGOR_SDN_OFFSET
const char *const MonthNameLong[13]
#define DAYS_PER_5_MONTHS