Re: This Monday problem



On Thu, 22 Mar 2007 13:46:59 +0000, Geoff Berrow wrote:

Message-ID: <bg1503p2n63lufgnaf9cpu9mr6pko0q1ob@xxxxxxx> from Adam
contained the following:


I need to be able to return the corresponding dates for Mondays - and
have tried various functions, scripts with varying degrees of success.
date('d-M-Y', strtotime('this monday'));

... works, as does:

date('d-M-Y', strtotime('last monday'));

However, whilst this function works well most of the time, for some
reason it pukes on Monday 19th March - and always returns 18th Mar
(which is a Sunday!).

Spring forward, fall back?

Errmm ... you'll have to explain that one to me <!!!> I'm from the UK
- now in NZ. Is that a US term for some sort of daylight saving thing?

I think you're onto something though - our clocks went back a short
while ago - I'll need to ask when it was (my short-term memory is
*appalling*!!). Wouldn't surprise me if it wasn't the Sunday (18th)
before that dreaded Monday (18/19th).

Adam.
.



Relevant Pages

  • Re: This Monday problem
    ... Adam wrote: ... scripts with varying degrees of success. ...
    (alt.php)
  • This Monday problem
    ... scripts with varying degrees of success. ... Any clues? ...
    (alt.php)
  • Re: This Monday problem
    ... scripts with varying degrees of success. ... Geoff Berrow 0110001001101100010000000110 ...
    (alt.php)
  • Re: Hedgehogs
    ... Phil C. wrote: ... scratch) for many years, with varying degrees of success: ...
    (soc.genealogy.britain)
  • Re: Silver Nemesis reborn, only with cappier music
    ... On Tue, 1 Jan 2008, Ian Salsbury wrote: ... his scripts are generally very well received by the public and he`s seen as ... Take a cult classic, loved by true fans, forever apart of the fabric of pop-culture for the nation of origin, but never really apreciated by the public when it was on. ... The question remins, however, is the success the result of producer skill, or the public's fasination with flashy lights? ...
    (rec.arts.drwho)