PHP unixtojd() 函数

PHP Calendar 参考手册


实例

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

<?php
echo unixtojd(,NULL);
?>

定义和用法

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


语法

unixtojd(timestamp,NULL);
参数 描述
timestamp 可选。规定要进行转换的 Unix 时间戳。

技术细节

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

PHP Calendar 参考手册

本教程仅供参考学习,如用于商业带来的问题,本站概不负责。
关注公众号
关注公众号

©2020 IT自习室京ICP备20010815号