Re: [PATCH] Fix date() bug

From: Date: Sat, 27 Sep 2008 09:43:55 +0000
Subject: Re: [PATCH] Fix date() bug
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-40736@lists.php.net to get a copy of this message
On Sat, Sep 27, 2008 at 1:28 PM, Hannes Magnusson <hannes.magnusson@gmail.com> wrote: > On Sat, Sep 27, 2008 at 09:04, Ilia Cheishvili > <ilia.cheishvili@gmail.com> wrote: >> Hi all, >> This patch addresses the issue with the date() function. When passing in a >> 'u', the date() function simply outputs six zeros. To fix this, I added a > > "Note: Since this function only accepts integer timestamps the u > format character is only useful when using the date_format() function > with user based timestamps created with date_create(). " ? This is oversimplification, as for "current moment", date() can get microseconds. For user-provided timestamps it, obviously, can not — that is true. -- Alexey Zakhlestin http://blog.milkfarmsoft.com/

« previous php.internals (#40736) next »