Current Location: Home> Function Categories> cal_to_jd

cal_to_jd

Converts the dates in the specified calendar to Julian day counts.
Name:cal_to_jd
Category:Uncategorized
Programming Language:php
One-line Description:Converts the dates in the specified calendar to Julian day counts.

Definition and usage

cal_to_jd() function converts the date of the specified calendar into a Julian day count.

Example

Convert September 25, 2016 (Gregorian Calendar) to Julian Day Count:

 <?php
$d = cal_to_jd ( CAL_GREGORIAN , 9 , 25 , 2016 ) ;
echo $d ;
?>

Run the instance

grammar

 cal_to_jd ( calendar , month , day , year ) ;
parameter describe
calendar

Required. Specify the calendar to be converted. Must be one of the following constants:

  • CAL_GREGORIAN
  • CAL_JULIAN
  • CAL_JEWISH
  • CAL_FRENCH
month Required. Specify the month by number.
day Required. Define the date by numbers.
year Required. Specify the year by number.
Similar Functions
Popular Articles