@lists.php.net
Subject: Re: [PHP] Problems with date()
Hi,
Try it with 28 December instead of 31 December.
>From http://en.wikipedia.org/wiki/ISO_week_date
The last week of the ISO year is the week before week 01; in accordance with
the symmetry of the definition, equivalent definitions
Hi,
Try it with 28 December instead of 31 December.
From http://en.wikipedia.org/wiki/ISO_week_date
The last week of the ISO year is the week before week 01; in accordance with
the symmetry of the definition, equivalent definitions are:
- the week with the year's last Thursday in it
- th
And what exactly did you expect? Have you checked a calendar? The
31st of december 2001, 2002 and 2003 are Monday, Tuesday and
Wednesday respectively. In other words. those days are more or less
in the middle of the week 01. So, I would say that your results are
absolutely right.
/frank
1
Maybe posting some code would help...
Bogdan
peke wrote:
>I've ported an app from linux to windows 2000 and now i'm having problems with
>functions date and mktime...does anybody knows the reason?. It says unexpected error
>and I don“t know what it can be
>Thanks in advance
>
--
PH
Don't worry. False alarm. My bad. (etc)
Hint for people experiencing a problem like this in the future: when passing
variables to mktime(), ensure $cmonth=3 and not $cmonth="March", I find it
helps a *lot* :-)
Moral to the story: when having difficulties, echo your variables to the
screen
C
5 matches
Mail list logo