jdtounix
Convert Julian day counts to Unix timestamps.
jdtounix()
function converts Julian day counts to Unix timestamps.
Note: If the parameter jd is not in the Unix new era (meaning that the Gregorian year must be between 1970 and 2037, or jd >= 2440588 and jd <= 2465342), the function will return false. The returned time is local time.
Tip: See unixtojd()
to convert Unix timestamps to Julian day counts.
Convert the dates in the Gregorian calendar to Julian day counts, and then convert the Julian day counts to Unix timestamps:
<?php $jd = gregoriantojd ( 9 , 25 , 2016 ) ; echo jdtounix ( $jd ) ; ?>
Run the instance
jdtounix ( jd ) ;
parameter | describe |
---|---|
jd | Required. Julian figures between 2440588 and 2465342. |