Calendar 函数
在线手册:中文 英文
PHP手册

JewishToJD

(PHP 4, PHP 5)

JewishToJD转变一个Jewish历法的日期为一个Julian Day计数

说明

int jewishtojd ( int $month , int $day , int $year )

尽管这个函数可以处理1(3761 B.C.)以前的年份,但这是没有意义的。Jewish历法被用了几千年,但早期的时候一个月的开始没有固定的准则,通常是观察到一个新月后定为一个月份的开始。

参数

month

在1到13之间的月份

day

在1到30日之间的日子

year

在1到9999之间的年份

返回值

指定的jewish历法的日期的julian天数。

参见


Calendar 函数
在线手册:中文 英文
PHP手册
PHP手册 - N: 转变一个Jewish历法的日期为一个Julian Day计数

用户评论:

erelsgl dot NOSPAM at cs dot technion dot ac dot il (20-Sep-2006 10:21)

JewishToJD returns 0 when the day number is 31 or more.

However, when the day number is 30, JewishToJD returns a valid Julian Day, even when the month only has 29 days. So, for example:
<?php
JDToJewish
(JewishToJD(4,30,5767)) === "5/1/5767"
?>

erelsgl dot NOSPAM at cs dot technion dot ac dot il (19-Sep-2006 01:55)

For non-leap years, this function returns the same for month 6 (Adar I) and month 7 (Adar II), so, for example:

<?php
JewishToJD
(6,15,5766) === JewishToJD(7,15,5766)

JDToJewish(JewishToJD(7,15,5766)) === '6/15/5766'
?>