<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 20 July 2016 at 15:33, Henry Vermaak <span dir="ltr"><<a href="mailto:henry.vermaak@gmail.com" target="_blank">henry.vermaak@gmail.com</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">On Wed, Jul 20, 2016 at 03:26:56PM +0100, Denis Kozlov wrote:<br>
> Don't mind another poorly chosen name "EpochToLocal", which in reality is<br>
> more like "UnixToDateTime".<br>
><br>
> Is there an issue I'm just not seeing?<br>
<br>
I thought the same.  Maybe the implementation predates UnixToDateTime()?<br>
Worth a bug report, I think.<br><br></blockquote><div><br></div><div>Well, Unix implementation of NowUTC can be replaced with a tidy:<br><br>function NowUTC: TDateTime;<br>var<br>  tp: timeval;<br>begin<br>  fpgettimeofday(@tp,nil);<br>  Result := UnixToDateTime(tp.tv_sec);<br>end;<br><br></div><div>Denis<br></div></div></div></div>