You are here: Re: All Monday's & Thursdays « All PHP « IT news, forums, messages
Re: All Monday's & Thursdays

Posted by Stuart on 06/30/06 15:12

Thanks for that I will try it later.

Stuart

"Janwillem Borleffs" <jw@jwscripts.com> wrote in message
news:44a4f902$0$91409$dbd4d001@news.euronet.nl...
> Stuart Colman wrote:
>> Janwillem,
>>
>> Thanks for that, almost there. Your code outputs the following:
>>
>> 2006 Jun Thu (01)
>> 2006 Jun Mon (12)
>> 2006 Jun Thu (15)
>> 2006 Jun Mon (26)
>> 2006 Jun Thu (29)
>>
>> There are a few dates missing from the list, such as Mon 5th, Thu
>> 8th, Mon 19th and Thu 22.
>>
>> Any ideas how to get these values too?
>>
>
> When I run the code on a Windows and a Linux box, I get the expected list:
>
> 2006 Jun Thu (01)
> 2006 Jun Mon (05)
> 2006 Jun Thu (08)
> 2006 Jun Mon (12)
> 2006 Jun Thu (15)
> 2006 Jun Mon (19)
> 2006 Jun Thu (22)
> 2006 Jun Mon (26)
> 2006 Jun Thu (29)
>
> On a FreeBSD box, however, I get the shortened list. The problem appears
> to be in this line:
>
> $ts = strtotime('next monday', $ts);
>
> On Windows and Linux, you will actually get the next monday, while on
> FreeBSD (and perhaps also on other OS's) it will just skip it.
>
> Removing "next" should fix it:
>
> $ts = strtotime('monday', $ts);
>
>
> JW
>

 

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

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