[fpc-pascal] Re: Is there a function that returns UTC time in FPC or Lazarus?
wkitty42 at windstream.net
Sat Mar 31 04:32:31 CEST 2012
On 3/30/2012 15:31, Reinier Olislagers wrote:
> On 30-3-2012 16:05, Frank Church wrote:
>> When I get the time via the DateTime function result is adapted for
>> the timezone, making it an hour ahead now?
>> Is there a function that returns the UTC time, either as a UnixTime or
>> TDateTime irregardless of timezone?
> You could search the fpc and lazarus mailing list; I know there've been
> posts regarding this.
> IIRC, the conclusion was that doing this is potentially very difficult
> to do cross platform, keeping daylight saving changes etc in mind.
agreed... even in the TP/BP6/7 days... it depends on the setting of the local
clock as to whether you to daylight saving display or not... i know of many that
operate on UTC and do not do local time when viewing... it can be done but it is
going to be a "trick" ;)
More information about the fpc-pascal