You are here: Re: [PHP] Week Days « PHP « IT news, forums, messages
Re: [PHP] Week Days

Posted by Philip Hallstrom on 10/19/15 11:24

>> 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.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация