Reply to Re: difference between two date in seconds: problem with daylight saving time

Your name:

Reply:


Posted by Curtis on 01/30/07 07:56

_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?
> Thank you in advance,
> Mario.

Check out the manual: http://php.net/date - Look at the format
character, 'Z', which is your server's difference in time from GMT.
From there, you can handle DST or force the time to a specific offset.

[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

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