PHP frenchtojd() 函数

PHP Calendar 参考手册


实例

把法国共和历的日期转换为儒略日计数,然后再转换回法国共和历的日期:

<?php
$jd=frenchtojd(3,3,14,NULL);
echo $jd . "<br>";
echo jdtofrench($jd,NULL);
?>

定义和用法

frenchtojd() 函数把法国共和历法的日期转换为儒略日计数。


语法

frenchtojd(month,day,year,NULL);
参数 描述
month 必需。从 1 到 13 的数字,规定月。
day 必需。从 1 到 30 的数字,规定日。
year 必需。从 1 到 14 的数字,规定年。

技术细节

返回值: 返回儒略日数字。
PHP 版本: 4+

PHP Calendar 参考手册

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

©2020 IT自习室京ICP备20010815号