PHP cal_to_jd()関数
:::example {.techis-example}
### 例
2007年6月20日(グレゴリオ暦)をユリウス日カウントに変換します。
:::code {.techis-code .notranslate .language-xml}
<?php<br/> $d=cal_to_jd(CAL_GREGORIAN,6,20,2007);<br/>echo $d;<br/>?>
:::code
:::example
定義と使用法
cal_to_jd()関数は、指定されたカレンダーの日付をユリウス日カウントに変換します。
構文
<div>cal_to_jd(<em>calendar,month,day,year);</em></div>
パラメータ値
| パラメータ | 説明 |
|---|---|
| calendar | Required 変換元のカレンダーを指定します。次のいずれかの値である必要があります。
|
| month | Required monthを数値で指定します |
| day | |
| year | Required 年を数値で指定します |
Technical Details
| Return Value: | ユリウス日を返します |
|---|---|
| PHP バージョン: | 4.1+ |