PHP cal_to_jd()関数
例
2007年6月20日(グレゴリオ暦)をユリウス日数に変換します。
<?php
$d=cal_to_jd(CAL_GREGORIAN,6,20,2007);
echo $d;
?>
定義と使用法
cal_to_jd()関数は、指定されたカレンダーの日付をユリウス日数に変換します。
構文
cal_to_jd(calendar,month,day,year);
パラメータ値
Parameter | Description |
---|---|
calendar | Required. Specifies the calendar to convert from. Must be one of the following values:
|
month | Required. Specifies the month as a number |
day | Required. Specifies the day as a number |
year | Required. Specifies the year as a number |
技術的な詳細
戻り値: | ユリウス日番号を返します |
---|---|
PHPバージョン: | 4.1+ |
❮PHPカレンダーリファレンス