PHP unixtojd () function
Examples
The Unix timestamp is converted to Julian day count:
<?php
echo unixtojd();
?>
echo unixtojd();
?>
Running instance »
Definition and Usage
unixtojd () function to convert a Unix timestamp to a Julian day count.
NOTE: Unix timestamp represents the number of seconds Calendar January 1, 1970 date from Gregorian.
Tip: See jdtounix () function to a Julian day count to a Unix timestamp.
grammar
unixtojd( timestamp);
参数 | 描述 |
---|---|
timestamp | 可选。规定要进行转换的 Unix 时间戳。 |
technical details
return value: | Returns the Unix timestamp (from January 1, 1970 since the number of seconds) of the Julian day numbers, or if the timestamp is not given, it returns the current time Confucianism Julian day numbers. |
---|---|
PHP version: | 4+ |
PHP Calendar Reference Manual