Menu Riverview Church

CAL_FROM_JD

Converts from Julian Day Count to a supported calendar

SYNTAX

cal_from_jd ( int $jd , int $calendar ) : array

PARAMETERS

jd

Julian day as integer

calendar

Calendar to convert to

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

RETURN

Returns an array containing calendar information like month, day, year, day of week (dow), abbreviated and full names of weekday and month and the date in string form "month/day/year". The day of week ranges from 0 (Sunday) to 6 (Saturday).

EXAMPLES

JD CALENDAR | CAL_GREGORIAN

Array
(
    [date] => 10/24/2020
    [month] => 10
    [day] => 24
    [year] => 2020
    [dow] => 6
    [abbrevdayname] => Sat
    [dayname] => Saturday
    [abbrevmonth] => Oct
    [monthname] => October
)

JD CALENDAR | CAL_JULIAN

Array
(
    [date] => 10/11/2020
    [month] => 10
    [day] => 11
    [year] => 2020
    [dow] => 6
    [abbrevdayname] => Sat
    [dayname] => Saturday
    [abbrevmonth] => Oct
    [monthname] => October
)

JD CALENDAR | CAL_JEWISH

Array
(
    [date] => 2/6/5781
    [month] => 2
    [day] => 6
    [year] => 5781
    [dow] => 6
    [abbrevdayname] => Sat
    [dayname] => Saturday
    [abbrevmonth] => Heshvan
    [monthname] => Heshvan
)

JD CALENDAR | CAL_FRENCH

Array
(
    [date] => 13/5/14
    [month] => 13
    [day] => 5
    [year] => 14
    [dow] => 1
    [abbrevdayname] => Mon
    [dayname] => Monday
    [abbrevmonth] => Extra
    [monthname] => Extra
)

PHP