JewishToJD

(PHP 4, PHP 5, PHP 7, PHP 8)

JewishToJD Converte una data del Calendario Giudeo in Giorno Giuliano

Descrizione

jewishtojd(int $mese, int $giorno, int $anno): int

Anche se questa funzione può gestire date fino all'anno 1 (3761 B.C.), questo utilizzo potrebbe non avere senso. Il calendario Giudeo è usato da parecchie migliaia di anni, ma nei primi tempi non c'era una formula per stabilire l'inizio del mese. Il nuovo mese iniziava quando si vedeva la prima volta la luna.

add a note add a note

User Contributed Notes 2 notes

up
3
erelsgl dot NOSPAM at cs dot technion dot ac dot il
18 years ago
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'
?>
up
0
erelsgl dot NOSPAM at cs dot technion dot ac dot il
17 years ago
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"
?>
To Top