The cal_to_jd() function converts a specified date to Julian day count.
cal_to_jd()函数的作用是:将指定日期转为儒略日计数
cal_to_jd(calendar,month,day,year) |
| Parameter 参数 | Description 描述 |
|---|---|
| calendar | Required. Specifies the calendar to use. The following calendar values can be used: 必要参数。指定需要使用的日历。下面列举了所有可用的参数:
|
| month | Required. Specifies the month 必要参数。指定月份 |
| day | Required. Specifies the day 必要参数。指定日 |
| year | Required. Specifies the year 必要参数。指定年份 |
<?php$d=cal_to_jd(CAL_GREGORIAN,10,03,2005);echo($d);?> |
The output of the code above will be:
上述代码将输出下面的结果:
2453647 |