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 :: [EMAIL PROTECTED]
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 <[EMAIL PROTECTED]>
> To: php-general <[EMAIL PROTECTED]>
> 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
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]