TUTORIALBackendFETCHED
PHP cal_to_jd() 函数
PHP cal_to_jd() 函数 PHP Calendar 参考手册 实例 把 2007 年 6 月 20 日(格利高里历法)转换为儒略日计数: <?php $d=cal_to_jd(CAL_GREGORIAN,6,20,2007);echo $d;?> 运行实例 » 定义和用法 cal_to_jd() 函数把指定历法的日期转换为儒略日计数。 语法 cal_to_jd(calendar,..
Updated 7/16/2026
Tutorial detail pages default to noindex.
PHP cal_to_jd() 函数
定义和用法
cal_to_jd() 函数把指定历法的日期转换为儒略日计数。
语法
cal_to_jd(calendar,month,day,year);
| 参数 | 描述 |
|---|---|
| calendar | 必需。规定要使用的历法。必须为下面这些常量之一:
|
| month | 必需。一个数字,规定月。 |
| day | 必需。一个数字,规定日。 |
| year | 必需。一个数字,规定年。 |
技术细节
| 返回值: | 返回儒略日数字。 |
|---|---|
| PHP 版本: | 4.1+ |
PHP Calendar 参考手册