Nous sommes le
{kl_php}

include_once(« source/locations.inc »);
include_once(« source/times.inc »);
include_once(« source/dst.inc »);
include_once(« source/torah.inc »);

$omer=gregoriantojd(date(‘m’), date(‘d’), date(‘Y’)) – gregoriantojd(4,10,2009) +1;
$ville = « Paris » ;
$location = searchLocation($ville);

$month = intval(date(‘m’));
$day = intval(date(‘d’));
$year = 2009;
$myTime = GetSunsetDegreesBelowHorizon($month, $day, $year, 7.5, $location[0], $location[1], $location[2]);
if ($myTime != «  ») {
if (isDaylightSavingsTime($month, $day, $year))
$myTime = AddMinutes($myTime, 60);
$heure = intval(date(‘H’));

$min = intval(date(‘i’));
$myTime[0]=22;
$myTime[1]=17;
if(($heure>$myTime[0])||(($heure==$myTime[0])&&($min>=$myTime[1]))) $omer++;
}

echo « $omer »;
echo » eme jour du Omer »;
{/kl_php}

Pour lire la beraha cliquez ici