Current Location: Home> Function Categories> cal_from_jd

cal_from_jd

Convert Julian day count to a date in the specified calendar.
Name:cal_from_jd
Category:Uncategorized
Programming Language:php
One-line Description:Convert Julian day count to a date in the specified calendar.

Definition and usage

cal_from_jd() function converts the Julian day count to the date of the specified calendar.

Example

Convert Julian day count to dates in the Gregorian calendar:

 <?php
$d = unixtojd ( mktime ( 0 , 0 , 0 , 9 , 25 , 2016 ) ) ;
print_r ( cal_from_jd ( $d , CAL_GREGORIAN ) ) ;
?>

Run the instance

grammar

 cal_from_jd ( jd , calendar ) ;
parameter describe
jd Required. Julian Day is defined by integers.
calendar

Required. Specifies the calendar to which it needs to be converted. Must be one of the following values:

  • CAL_GREGORIAN
  • CAL_JULIAN
  • CAL_JEWISH
  • CAL_FRENCH
Similar Functions
Popular Articles