mktime() bug? result strtotime() fail in PHP
Daniel O'Connor
doconnor at gsoft.com.au
Mon Feb 14 04:21:32 PST 2005
On Mon, 14 Feb 2005 22:35, Marcus Grando wrote:
> Hi,
>
> Peter Jeremy wrote:
> > To be pedantic, FreeBSD 4.11 is correct and the others are wrong. If
>
> ^^^^^^
> Also FreeBSD 5.3-STABLE?
>
> > DST started at 2004-11-02 00:00 local time then you can't convert a local
> > time of 2004-11-02 00:00:00 because that time doesn't exist - your local
> > time goes 2004-11-01 23:59:59, 2004-11-02 01:00:00, 2004-11-02 01:00:01.
>
> I know, but timestamp return is better of that -1.
Not really..
You asked it to do an illegal operation. There are 2 choices - 1) return and
error, 2) have the computer try and guess what you really meant.
2 leads to all sorts of bad things like other programs working around it to
get proper functionality etc..
--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
-- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20050214/5294b21a/attachment.bin
More information about the freebsd-stable
mailing list