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

From: Date: Fri, 19 Jan 2001 00:09:40 +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-35518@lists.php.net to get a copy of this message
can't think of exactly the math, but get the weekdayday of the 1st, divide how many days in the month/7, and it should be easy enuff. use a combination of date() and mktime() to get the first day of the month methinks. Gfunk - http://www.gfunk007.com/ I sense much beer in you. Beer leads to intoxication, intoxication to hangovers, and hangovers to... suffering. ----- Original Message ----- From: "Romulo Roberto Pereira" <php@diffdev.com> To: "php-general" <php-general@lists.php.net> Sent: Friday, January 19, 2001 11:07 AM 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 (#35518) next »