You are here: Re: PHP and the Unix 2037 A.D. Epoch Issue « PHP Programming Language « IT news, forums, messages
Re: PHP and the Unix 2037 A.D. Epoch Issue

Posted by Colin McKinnon on 04/11/06 00:32

Peter Fox wrote:

> Following on from Michael Vilain's message. . .
>>In article <f3n_f.32362$aa.22902@fe78.usenetserver.com>,
>> "David T. Ashley" <dta@e3ft.com> wrote:
>>
>>> I'm writing a large PHP application that might still be in service in
>>> 2037.
>>>
<snip>
>
> The obvious answer is to decouple your dates from built-in dates of any
> kind (eg by having your own date class) and assume that system clocks
> will be fudged nearer the time. This way your program stays independent
> of all other limitations.

Building your own date handling from scratch seems a bit extravagant.

I often use ISO formatted dates/times (yyyy-mm-dd [hh:mm[:ss]]) and, if I
need to number crunching or change formatting, just pass it over to the
MySQL parser to deal with. I also don't need to worry about whether the
target can calculate negative timestamps, or timestamps before ...erm...
1900ish.

C.

 

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

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