PHP/Date/cal to jd

Материал из Web эксперт
Версия от 10:03, 26 мая 2010; Admin (обсуждение | вклад) (1 версия)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск

Using the French Republican calendar

   <source lang="html4strict">

<?php $jd = cal_to_jd(CAL_FRENCH, 8, 13, 11); $french = cal_from_jd($jd, CAL_FRENCH); $gregorian = cal_from_jd($jd, CAL_GREGORIAN); ?>

 </source>
   
  


Using the Jewish calendar

   <source lang="html4strict">

<?php $jd = cal_to_jd(CAL_JEWISH, 6, 14, 5761); $jewish = cal_from_jd($jd, CAL_JEWISH); $gregorian = cal_from_jd($jd, CAL_GREGORIAN); ?>

 </source>
   
  


Using the Julian calendar

   <source lang="html4strict">

<?php $jd = cal_to_jd(CAL_JULIAN, 2, 29, 1900); $julian = cal_from_jd($jd, CAL_JULIAN); $gregorian = cal_from_jd($jd, CAL_GREGORIAN); ?>

 </source>