Re: date problem: some months have 5 weeks... how I discover which ones?

From: Date: Fri, 19 Jan 2001 00:14:19 +0000
Subject: Re: date problem: some months have 5 weeks... how I discover which ones?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-35519@lists.php.net to get a copy of this message
All months have more than 4 weeks except February (but only when it is not a leap year). I'm probably not understanding what exactly you are trying to do. By your definition then, wouldn't this month only have 3 weeks? January 2001 Su Mo Tu We Th Fr Sa 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Yet there are 10 unaccounted days which is 1 and 3/7 more weeks. Jeremy Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: jeremy@nirvani.net http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "LINUX is obsolete" -- Andy Tanenbaum, January 29th, 1992 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - http://www.JEEP-FOR-SALE.com/ -- I need a buyer Get your own Free, Private email at http://www.smackdown.com/ On Thu, 18 Jan 2001, Romulo Roberto Pereira wrote: > Date: Thu, 18 Jan 2001 19:07:31 -0500 > From: Romulo Roberto Pereira <php@diffdev.com> > To: php-general <php-general@lists.php.net> > Subject: [PHP] date problem: some months have 5 weeks... how I discover which ones? > > Hey! > > A little bit of definition: > > - a week start on sunday and ends on saturday; > > - a year has 365/7 ~= 52 weeks; > > How do I discover what months have 5 weeks and what have 4? > > Rom >

« previous php.general (#35519) next »