PHP cal_from_jd()関数
例
ユリウス日数をグレゴリオ暦の日付に変換します。
<?php
$d=unixtojd(mktime(0,0,0,6,20,2007));
print_r(cal_from_jd($d,CAL_GREGORIAN));
?>
定義と使用法
cal_from_jd()関数は、ユリウス日カウントを指定されたカレンダーの日付に変換します。
構文
cal_from_jd(jd,calendar);
パラメータ値
Parameter | Description |
---|---|
jd | Required. Specifies a Julian Day as an integer |
calendar | Required. Specifies the calendar to convert to. Must be one of the following values:
|
技術的な詳細
戻り値: | 次のようなカレンダー情報を含む配列を返します。
|
---|---|
PHPバージョン: | 4.1+ |
❮PHPカレンダーリファレンス