[Lazarus] UnixToDateTime and time zone

Felipe Monteiro de Carvalho felipemonteiro.carvalho at gmail.com
Fri Sep 17 15:47:55 CEST 2010

On Fri, Sep 17, 2010 at 3:37 PM, Dibo <dibo20 at wp.pl> wrote:
> I am surprised that Free Pascal does not have so basic function. Should
> I post it on mantis as proposition?

Probably (unless it already exists), but I think your design could be
improved. More precisely:

Add a function GetLocalTimeOffset() and make it's contents be
completely ifdefed, only keep the header the same for windows and
linux, so that it matches better how FPC implements it's functions.

Now function UniversalTimeToLocal should be fully cross-platform and
require no ifdefs

Felipe Monteiro de Carvalho

More information about the Lazarus mailing list