小白教程
所有教程
关于
Search
172.69.6.177
172.69.6.177
参数设置
贡献
退出
操作
编辑
移动
保护
信息
历史
删除
查看“Func cal unixtojd”的源代码
本页内容
上一节:
Func_cal_juliantojd
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
{{DISPLAYTITLE:unixtojd()}}[[Category:PHP Calendar 参考手册|18]] = PHP unixtojd() 函数 = [[:Category:PHP Calendar 参考手册]] 把 Unix 时间戳转换为儒略日计数: <sample title="" desc="" lang="php" hererun="1"> <?php echo unixtojd(); ?> </sample> == 定义和用法 == unixtojd() 函数把 Unix 时间戳转换为儒略日计数。 '''注释:'''Unix 时间戳表示从格利高里历法 1970 年 1 月 1 日至今的秒数。 '''提示:'''请参阅 [[func cal jdtounix|jdtounix()]] 函数把儒略日计数转换为 Unix 时间戳。 == 语法 == <pre> unixtojd(timestamp); </pre> {| class="table table-striped table-hover" ! 参数 ! 描述 |- | timestamp | 可选。规定要进行转换的 Unix 时间戳。 |} == 技术细节 == {| class="table table-striped table-hover" | 返回值: | 返回 Unix 时间戳(从 1970 年 1 月 1 日至今的秒数)的儒略日数字,或者如果 timestamp 没给出,则返回当前时间的儒略日数字。 |- | PHP 版本: | 4+ |} [[:Category:PHP Calendar 参考手册]]
返回至“
Func cal unixtojd
”。
上一节:
Func_cal_juliantojd