Re: Week Days

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Easy enough to change that date(...mktime(...)) command above to return
the weekday and while the weekday is a weekend just add a day and repeat.

Actually sorry to post again on the same post, but this is like the
first solution posted and is invalid since it doesn't account for
non-weekdays that fall within the range. It only checks the endpoints of
the addition. For instance adding 50 days would contain about 20 or so
weekend days.

Ah... but you are forgetting the rule I live by... anything that happened more than a week ago or is happening more than a week in the future... doesn't count, I don't remember, and I can't be held responsible for.

:-)

good catch though.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux