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
[Back to original message]
|