September 2001
Intermediate to advanced
768 pages
32h 45m
English
int unixtojd([int timestamp]) Converts a UNIX timestamp to a Julian day count.
Returns:
Julian day count
Description:
unixtojd() converts a UNIX timestamp to a Julian day count. If no timestamp is given, the function returns the Julian day count for the current timestamp.
Warning:
As of PHP 4.0.4, this function behaves oddly if given a timestamp less than 0. Filtering the input to ensure that a valid timestamp is being passed to the function is a good idea.
Version:
Available in PHP 4.0.0 RC 2
See also:
To convert a Julian day count to a UNIX timestamp date:
jdtounix()
To convert a Julian day count to another calendar system, see the jdto* functions
Examples:
echo ... |
Read now
Unlock full access