Reply to Re: mktime for 26 march 2006 returns negative value

Your name:

Reply:


Posted by WebM€nkey on 07/11/05 14:26

Ben Allen" <"ben.allen"@\"your.tonsils\ wrote:
> WebM€nkey wrote:
>> Chris Hope wrote:
>>
>>> WebM€nkey wrote:
>>>
>>>
>>>> Hi folks
>>>> Just found that the mktime function returns a negative value when
>>>> the date is 26 march 2006 with 0 hours, 0 seconds and 0 minutes.
>>>> Is this a documented problem ? Any suggestions ?
>>>
>>> Works for me. Show us your code.
>>
>>
>> print mktime(0,0,0,3,26,2006);
>> prints -3662
>>
>>
> That code prints me:
> 1143349200
>
> I'm not sure what you want to do but if you are trying to display the
> date you need code like this:
>
> mktime(0,0,0,3,26,2006);
> print date("d-m-Y");

Yes I am using the date function. But for some reason only 26 march 2006
returns a negative value on my set up. ( apart from any date beyond 2038 ).
All dates in 2006 are fine. Could this be OS related ? The OS where i
expereince this problem is freebsd. The problem has manifested on two boxes
with freebsd.

[Back to original message]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация