PHP UnixToJD() Function
Definition and Usage
The unixtojd() function converts Unix timestamp to Julian day count.
Note:Unix timestamp indicates the number of seconds from midnight on January 1, 1970 (Gregorian, solar calendar) to the present.
Tip:See Also jdtounix() The function converts Julian day count to Unix timestamp.
Syntax
unixtojd(timestamp);
Parameters | Description |
---|---|
timestamp | Optional. Specifies the Unix timestamp to be converted. |
Technical Details
Return Value: | Returns the Julian day number of the Unix timestamp (the number of seconds from January 1, 1970 to the present), or if not given timestampThen it returns the Julian day number of the current time. |
---|---|
PHP Version: | 4+ |