← 返回列表

PHP unixtojd() 函数

PHP unixtojd() 函数 实例 把 Unix 时间戳转换为儒略日计数: <?php echo unixtojd(); ?> 定义和用法 unixtojd() 函数把 Unix 时间戳转换为儒略日计数。 注释: Unix 时间戳表示从格利高里历法 1970 年 1 月 1 日至今的秒数。 提示: 请参阅 jdtounix() 函数把儒略日计数转换为 Unix 时间戳。 语法 unixtojd( _timestamp);_ 参数 描述 _timestamp_ 可选。规定要进行转换的 Unix 时间戳。 技术细节 返回值: 返回 Unix 时间戳(从 1970 年 1 月 1 日至今的秒数)的儒略日数字,或者如果 _timestamp_ 没给出,则返回当前时间的儒略日数字。 PHP 版本: 4+

PHP unixtojd() 函数


实例

把 Unix 时间戳转换为儒略日计数:

<?php  
echo unixtojd();  
?>

定义和用法

unixtojd() 函数把 Unix 时间戳转换为儒略日计数。

注释: Unix 时间戳表示从格利高里历法 1970 年 1 月 1 日至今的秒数。

提示: 请参阅 jdtounix() 函数把儒略日计数转换为 Unix 时间戳。

语法

unixtojd( _timestamp);_
参数 描述
_timestamp_ 可选。规定要进行转换的 Unix 时间戳。

技术细节

返回值: 返回 Unix 时间戳(从 1970 年 1 月 1 日至今的秒数)的儒略日数字,或者如果 _timestamp_ 没给出,则返回当前时间的儒略日数字。
PHP 版本: 4+

打开资源 ↗

交流与评论