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