PHP jewishtojd()関数
例
ユダヤ人の日付をユリウス日数に変換します。
<?php
$jd=jewishtojd(6,20,2007);
echo $jd;
?>
定義と使用法
jewishtojd()関数は、日付をユダヤ暦からユリウス日数に変換します。
注:この関数は1年目(紀元前3761年)までの日付を処理できますが、最初は月の始まりを決定する式がなかったことに注意してください。新月が最初に観測されたとき、新しい月が始まりました。
ヒント:jdtojewish()関数を見て、ユリウス日数をユダヤ人の日付に変換します。
構文
jewishtojd(month,day,year);
パラメータ値
Parameter | Description |
---|---|
month | Required. Specifies the month as a number from 1 to 13 |
day | Required. Specifies the day as a number from 1 to 30 |
year | Required. Specifies the year as a number between 1 and 9999 |
技術的な詳細
戻り値: | ユリウス日番号を返します |
---|---|
PHPバージョン: | 4歳以上 |
❮PHPカレンダーリファレンス