PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

JulianToJD> <jdtounix
Last updated: Fri, 22 Aug 2008

view this page in

JewishToJD

(PHP 4, PHP 5)

JewishToJDConvierte del Calendario Judío a la Cuenta de Días Juliana

Descripción

int jewishtojd ( int $mes , int $dia , int $anno )

Aunque este programa puede manejar fechas tan lejanas como el año 1 (3761 A.C.), usarlo no tendría sentido. El Calendario Judío ha estado en uso miles de años, pero en los días primeros no había una fórmula que calculara el comienzo de un mes. Un mes comenzaba cuando se veía por primera vez la luna nueva.



add a note add a note User Contributed Notes
JewishToJD
erelsgl dot NOSPAM at cs dot technion dot ac dot il
20-Sep-2006 11: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 02: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'
?>

JulianToJD> <jdtounix
Last updated: Fri, 22 Aug 2008
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites