Menu Riverview Church

CAL_TO_JD

Converts from a supported calendar to Julian Day Count

SYNTAX

cal_to_jd ( int $calendar , int $month , int $day , int $year ) : int

PARAMETERS

calendar

Calendar to convert from

NUMBER NAME DESCRIPTION
0 CAL_GREGORIAN Gregorian Calendar
1 CAL_JULIAN Julian Calendar
2 CAL_JEWISH Jewish Calendar
3 CAL_FRENCH French Revolutionary Calendar
month

The month as a number, the valid range depends on the calendar

day

The day as a number, the valid range depends on the calendar

year

The year as a number, the valid range depends on the calendar

RETURN

A Julian Day number.

EXAMPLES

CALENDAR | CAL_GREGORIAN

1721426

CALENDAR | CAL_JULIAN

1721424

CALENDAR | CAL_JEWISH

347998

CALENDAR | CAL_FRENCH

2375840

PHP