Re: Calendar_Day is Sunday?
| From: | Michael Wallner | Date: | Thu, 12 Feb 2004 15:53:55 +0000 |
| Subject: | Re: Calendar_Day is Sunday? | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-10652@lists.php.net to get a copy of this message | ||
Hi Stefan Neufeind, you wrote:
> Make timestamp from your date using mktime() and then feed that into
> getdate. Will give you also "wday" (weekday) where 0 represents a
> Sunday.
Thanks Stefan, I'm currently already doing it a simliar way:
if (strftime('%w', $day->getTimestamp()) % 6) {
}
Thanks,
--
Michael - < mike(@)php.net >
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc