Mega Code Archive
Calculation of easterday and the holydays depended of easterday
11) $epact = $epact + 1;
$day = 44 - $epact;
if ($day < 21) $day = $day + 30;
$day = $day + 7 - (($extra+$day)%7); $month = 3;
if ($day > 31) { $month = 4; $day = $day - 31; }
return mktime(8,0,0,$month,$day,$year);
}
$seconds_pr_day = 86400;
for ($i=1990; $i<=2010; $i++) {
$easter = easterday($i);
echo "Easterday: ";
echo date("Y-m-d", $easter);
echo " - Pentecost: ";
echo date("Y-m-d", $easter + (49*$seconds_pr_day));
echo "\n";
}
?>