|
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.
Navigation:
[Reply to this message]
|