[fpc-devel] NowUTC in FPC

Henry Vermaak henry.vermaak at gmail.com
Wed Jul 20 16:33:26 CEST 2016


On Wed, Jul 20, 2016 at 03:26:56PM +0100, Denis Kozlov wrote:
> On 20 July 2016 at 14:47, Marco van de Voort <marcov at stack.nl> wrote:
> 
> > In our previous episode, Denis Kozlov said:
> > > 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.
> >
> > I was looking at the Unix implementation.
> >
> 
> Unix implementation also returns UTC time, i.e. fpgettimeofday returns
> seconds since Epoch, which gets converted to TDateTime.
> 
> Don't mind another poorly chosen name "EpochToLocal", which in reality is
> more like "UnixToDateTime".
> 
> Is there an issue I'm just not seeing?

I thought the same.  Maybe the implementation predates UnixToDateTime()?
Worth a bug report, I think.

Henry



More information about the fpc-devel mailing list