note 84996 added to function.date

From: Date: Fri, 08 Aug 2008 22:54:49 +0000
Subject: note 84996 added to function.date
Groups: php.notes 
Request: Send a blank email to php-notes+get-143319@lists.php.net to get a copy of this message
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/ ---- Server IP: 80.67.2.2 Probable Submitter: 79.102.123.39 ---- Manual Page -- http://www.php.net/manual/en/function.date.php Edit -- https://master.php.net/note/edit/84996 Del: integrated -- https://master.php.net/note/delete/84996/integrated Del: useless -- https://master.php.net/note/delete/84996/useless Del: bad code -- https://master.php.net/note/delete/84996/bad+code Del: spam -- https://master.php.net/note/delete/84996/spam Del: non-english -- https://master.php.net/note/delete/84996/non-english Del: in docs -- https://master.php.net/note/delete/84996/in+docs Del: other reasons-- https://master.php.net/note/delete/84996 Reject -- https://master.php.net/note/reject/84996 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#143319) next »