Reply to Re: [PHP] Problems with epoch date before 1970 on PHP 4.3.1

Your name:

Reply:


Posted by Richard Lynch on 10/20/14 11:11

On Tue, March 22, 2005 2:56 pm, Dan Rossi said:
> Hi there we have discovered a bug when trying to format a date which is
> before 1970 on one of our servers running PHP 4.3.1 , it will convert
> the 1966 year to 1970, is there any possible workaround for this ?

Errrr.

Unix epoch dates start with the integer 0 representing midnight 1/1/1970.

Rumor has it that the authors of this standard are big Disco fans, but
they have only replied with "No comment" :-)

I dunno what you expected to get from 1966 in an epoch date, but it's not
kosher input, so there ya go.

The only work-around for getting pre-1970 dates is not using Unix epoch to
represent your dates.

--
Like Music?
http://l-i-e.com/artists.htm

[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

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