Current Location: Home> Function Categories> jdtounix

jdtounix

Convert Julian day counts to Unix timestamps.
Name:jdtounix
Category:Uncategorized
Programming Language:php
One-line Description:Convert Julian day counts to Unix timestamps.

Definition and usage

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.

Example

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

grammar

 jdtounix ( jd ) ;
parameter describe
jd Required. Julian figures between 2440588 and 2465342.
Similar Functions
Popular Articles