Convert Unix timestamp to Julian day count:
<?phpecho unixtojd();?>The unixtojd() function converts a Unix timestamp to a Julian day count.
Note: A Unix timestamp represents the number of seconds since January 1, 1970 according to the Gregorian calendar.
Tip: See the jdtounix() function to convert Julian day counts to Unix timestamps.
unixtojd( timestamp);
parameter | describe |
---|---|
timestamp | Optional. Specifies the Unix timestamp to be converted. |
Return value: | Returns the Julian day number of the Unix timestamp (number of seconds since January 1, 1970), or if timestamp is not given, the Julian day number of the current time. |
---|---|
PHP version: | 4+ |