[Lazarus] UnixToDateTime and time zone
dibo20 at wp.pl
Thu Sep 16 20:55:06 CEST 2010
Dnia 2010-09-16, czw o godzinie 19:49 +0200, Jürgen Hestermann pisze:
> Krzysztof schrieb:
> > I have a problem. Example this unix timestamp: 1280166617.
> > DateTimeToString(UnixToDateTime(1280166617)) should give me 2010-07-26
> > 19:50:17 (in country: Poland) but it give me 2010-07-26 17:50:17. I must
> > add two hours:
> As far as I know UnixTime is a global time.
> It's UTC time format.
> See http://en.wikipedia.org/wiki/Unix_time
> So if you want a local time you need to adjust
> according to the local time zone.
How can I do this? I'm confused. Example: If someone send mi unix time
"1984-10-10 12:12:12" how can I know which time was in my time zone?
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
More information about the Lazarus