把 Unix 时间戳转换为儒略日计数:
<?php
echo unixtojd()
;
?>
定义和用法
unixtojd() 函数把 Unix 时间戳转换为儒略日计数。
注释:Unix 时间戳指示从 1970 年 1 月 1 日午夜(格里历,阳历)至今的秒数。
语法
unixtojd(timestamp);
参数 | 描述 |
---|---|
timestamp | 可选。规定要进行转换的 Unix 时间戳。 |
<?php
echo unixtojd()
;
?>
unixtojd() 函数把 Unix 时间戳转换为儒略日计数。
注释:Unix 时间戳指示从 1970 年 1 月 1 日午夜(格里历,阳历)至今的秒数。
unixtojd(timestamp);
参数 | 描述 |
---|---|
timestamp | 可选。规定要进行转换的 Unix 时间戳。 |