note 84996 deleted from function.date by bjori
| From: | bjori@php.net | Date: | Sat, 09 Aug 2008 17:15:39 +0000 |
| Subject: | note 84996 deleted from function.date by bjori | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-143324@lists.php.net to get a copy of this message | ||
Note Submitter: Date Algorithm - Hans hlin
Reason: useless
----
Author/Creator: Hans Ã
hlin
Weeks in a year is 52 or 53
Days in a year is 365 and if a leap year 366
If (
(365 (Days Of a year) * (Years From 1940)) + (Number of leap years since 1940, (Years From 1940 / 4)
(if its a Leap year -1)) + ((Days From 01-01) + 1) % 7 = (0-6 where 0 = Monday)
) is less then 3 (Thursday) then its in week nr 01 else if equal to 4 (Friday) its week 53 else its
week 52
Hope you find this some what useful
/Hans Ã
hlin
Mail: ahlin.hans@kronan-net.com
Web: http://threesides.kronan-net.com/