cal_to_jd – Convert Supported Calendar Date to Julian Day Number
The cal_to_jd() function in PHP calculates the Julian Day count from a given date, supporting Gregorian, Julian, Jewish, and French calendars, and returns the corresponding Julian Day number based on the provided calendar, month, day, and year parameters.
The cal_to_jd() function computes the Julian Day number for a specified date, supporting the calendars CAL_GREGORIAN, CAL_JULIAN, CAL_JEWISH, and CAL_FRENCH.
int cal_to_jd(int $calendar, int $month, int $day, int $year)
Parameters
calendar : The selected calendar, which must be one of CAL_GREGORIAN, CAL_JULIAN, CAL_JEWISH, or CAL_FRENCH.
month : The month as an integer, with its valid range determined by the chosen calendar.
day : The day of the month as an integer, also dependent on the selected calendar.
year : The year as an integer, interpreted according to the chosen calendar.
Return value
Returns a Julian Day number representing the given calendar date.
Laravel Tech Community
Specializing in Laravel development, we continuously publish fresh content and grow alongside the elegant, stable Laravel framework.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.