You are here: Re: mktime and negative timestamps (on linux, not windows). « PHP Programming Language « IT news, forums, messages
Re: mktime and negative timestamps (on linux, not windows).

Posted by Carl on 11/05/86 11:22

Sugapablo wrote:
> From the manual, it seems negative timestamps should work on Linux, just
> not Windows.
>
> But anything I try before 1970, (i.e. a negative timestamp) is giving me
> 12/31/1969.
>
> Is this right?
>

How exactly are you setting the timestamp value?

The following works fine for me (FreeBSD):

$timeStamp = mktime(0, 0, 1, 1, 1, 1965);
echo date("l dS of F Y h:i:s A", $timeStamp);

prints "Friday 01st of January 1965 12:00:01 AM"

 

Navigation:

[Reply to this 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

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация