<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 20 July 2016 at 13:31, Marco van de Voort <span dir="ltr"><<a href="mailto:marcov@stack.nl" target="_blank">marcov@stack.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">In our previous episode, Denis Kozlov said:<br>
> Is it possible to move NowUTC from LazUTF8SysUtils.NowUTC to FPC, e.g.<br>
> DateUtils?<br>
><br>
> LocalTimeToUniversal(Now) is inefficient and suffers from a race condition,<br>
> but can still be used as a fallback implementation.<br>
<br>
Isn't that horribly misnamed? It seems to get system time without additional<br>
timezone corrections by FPC, but there is no guarantee that that is UTC?<br></blockquote><div><br></div><div>Do you mean "NowUTC" is misnamed? Sure, just as many other things, but consistency is gold-ish ;)<br><br></div><div>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.<br></div><div><br></div><div>Denis<br></div></div></div></div>