Re: All Monday's & Thursdays



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


.



Relevant Pages

  • Re: wine
    ... > results to running in linux and windows. ... > performance gap in freebsd. ... The linux version under redhat 9 gives me a better framerate ... Its a shame we can't get native games for freebsd. ...
    (freebsd-questions)
  • RE: BSD Questions.
    ... >Cc: Daniel A.; Andy Sjostrom ... >>> I suggest that you use Linux, as FreeBSD ... >>> replacement for Windows, as they somehow have ...
    (freebsd-questions)
  • Re: ZFS, Qemu, and XP & Linux clients
    ... What about SMB for Windows and NFS for Linux? ... there may be driver problems with FreeBSD). ... I had the easiest time getting the networking going by using VDE: ...
    (comp.unix.bsd.freebsd.misc)
  • Re: BSD Questions.
    ... > and Linux *should* focus on server functions, ... I've been using FreeBSD on my desktop since 1997 because I found it to ... be superior to either Windows or Linux. ... Linux isn't an operating system. ...
    (freebsd-questions)
  • Re: why not like linux ?
    ... For Linux, get another distribution where this is not needed. ... Oh, obviously, you forget Windows 95/98/Me, do you? ... FreeBSD and Windows are whole OS ...
    (microsoft.public.development.device.drivers)