note 83794 added to function.easter-date

From: Date: Thu, 12 Jun 2008 08:36:46 +0000
Subject: note 83794 added to function.easter-date
Groups: php.notes 
Request: Send a blank email to php-notes+get-140366@lists.php.net to get a copy of this message
To compute the correct Easter date for Eastern Orthodox Churches I made a function based on the Meeus Julian algorithm: function orthodox_eastern($year) { $a = $year % 4; $b = $year % 7; $c = $year % 19; $d = (19 * $c + 15) % 30; $e = (2 * $a + 4 * $b - $d + 34) % 7; $month = floor(($d + $e + 114) / 31); $day = (($d + $e + 114) % 31) + 1; $de = mktime(0, 0, 0, $month, $day + 13, $year); return $de; } ---- Server IP: 69.147.83.197 Probable Submitter: 89.35.129.81 ---- Manual Page -- http://www.php.net/manual/en/function.easter-date.php Edit -- https://master.php.net/note/edit/83794 Del: integrated -- https://master.php.net/note/delete/83794/integrated Del: useless -- https://master.php.net/note/delete/83794/useless Del: bad code -- https://master.php.net/note/delete/83794/bad+code Del: spam -- https://master.php.net/note/delete/83794/spam Del: non-english -- https://master.php.net/note/delete/83794/non-english Del: in docs -- https://master.php.net/note/delete/83794/in+docs Del: other reasons-- https://master.php.net/note/delete/83794 Reject -- https://master.php.net/note/reject/83794 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#140366) next »