You are here: Re: difference between two date in seconds: problem with daylight saving time « PHP Language « IT news, forums, messages
Re: difference between two date in seconds: problem with daylight saving time

Posted by J.O. Aho on 01/30/07 08:27

_mario.lat wrote:
> Hallo,
> I have to calculate difference in seconds between two timestamp (unixtime).
> the problem is when there is daylight saving time so in this case
> end-start shoultd be negative and wrong data.
> How can I do?
> there is a function that lead this problem?

Store time in UTC, and when you display times for the user to read, convert
the UTC time to the time that is currently used in your location, this way you
won't get troubles with CET/CETS.


--

//Aho

 

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

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