Re: : getdate function behaviour
| From: | Sanjay Mantoor | Date: | Wed, 29 Oct 2008 08:51:28 +0000 |
| Subject: | Re: : getdate function behaviour | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-41547@lists.php.net to get a copy of this message | ||
Derick ,
Yes I will do.
Thanks,
Sanjay M
On Wed, Oct 29, 2008 at 1:12 PM, Derick Rethans <derick@php.net> wrote:
> On Wed, 29 Oct 2008, Sanjay Mantoor wrote:
>
>> While I was working on getdate function, found different behavior with
>> respect to http://in.php.net/manual/en/function.getdate.php
>> This is observed only on linux 64bit.
>> Here is code
>> <?php
>> $timestamp = -12.3456789000e10;
>> var_dump( getdate($timestamp) );
>> ?>
>>
>> As per documentation weekday should be Sunday through Saturday but I
>> got "Unknown".
>
> [snip]
>
>> Can somebody point-out what is the problem? And whether it is an
>> expected behavior.
>
> It's a bug in the day-of-week algorithm in case there is a negative
> year. Could you file a bug please?
>
> regards,
> Derick
>
> --
> HEAD before 5_3!: http://tinyurl.com/6d2esb
> http://derickrethans.nl |
> http://ezcomponents.org |
> http://xdebug.org
>
--
Thanks,
Sanjay Mantoor