php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
gregor.c File Reference
#include "sdncal.h"
#include <limits.h>

Go to the source code of this file.

Macros

#define GREGOR_SDN_OFFSET   32045
 
#define DAYS_PER_5_MONTHS   153
 
#define DAYS_PER_4_YEARS   1461
 
#define DAYS_PER_400_YEARS   146097
 

Functions

void SdnToGregorian (zend_long sdn, int *pYear, int *pMonth, int *pDay)
 
zend_long GregorianToSdn (int inputYear, int inputMonth, int inputDay)
 

Variables

const char *const MonthNameShort [13]
 
const char *const MonthNameLong [13]
 

Macro Definition Documentation

◆ DAYS_PER_400_YEARS

#define DAYS_PER_400_YEARS   146097

Definition at line 135 of file gregor.c.

◆ DAYS_PER_4_YEARS

#define DAYS_PER_4_YEARS   1461

Definition at line 134 of file gregor.c.

◆ DAYS_PER_5_MONTHS

#define DAYS_PER_5_MONTHS   153

Definition at line 133 of file gregor.c.

◆ GREGOR_SDN_OFFSET

#define GREGOR_SDN_OFFSET   32045

Definition at line 132 of file gregor.c.

Function Documentation

◆ GregorianToSdn()

zend_long GregorianToSdn ( int inputYear,
int inputMonth,
int inputDay )

Definition at line 202 of file gregor.c.

◆ SdnToGregorian()

void SdnToGregorian ( zend_long sdn,
int * pYear,
int * pMonth,
int * pDay )

Definition at line 137 of file gregor.c.

Variable Documentation

◆ MonthNameLong

const char* const MonthNameLong[13]
Initial value:
=
{
"",
"January",
"February",
"March",
"April",
"May",
"June",
"July",
"August",
"September",
"October",
"November",
"December"
}

Definition at line 264 of file gregor.c.

◆ MonthNameShort

const char* const MonthNameShort[13]
Initial value:
=
{
"",
"Jan",
"Feb",
"Mar",
"Apr",
"May",
"Jun",
"Jul",
"Aug",
"Sep",
"Oct",
"Nov",
"Dec"
}

Definition at line 247 of file gregor.c.