On 20 July 2016 at 13:31, Marco van de Voort <[email protected]> wrote:

> In our previous episode, Denis Kozlov said:
> > Is it possible to move NowUTC from LazUTF8SysUtils.NowUTC to FPC, e.g.
> > DateUtils?
> >
> > LocalTimeToUniversal(Now) is inefficient and suffers from a race
> condition,
> > but can still be used as a fallback implementation.
>
> Isn't that horribly misnamed? It seems to get system time without
> additional
> timezone corrections by FPC, but there is no guarantee that that is UTC?
>

Do you mean "NowUTC" is misnamed? Sure, just as many other things, but
consistency is gold-ish ;)

I'm not sure why you say there is no guarantee, because in example of
Windows implementation GetSystemTime API is explicitly expressed in UTC
according to MSDN.

Denis
_______________________________________________
fpc-devel maillist  -  [email protected]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to