[fpc-devel] NowUTC in the RTL
Michael Van Canneyt
michael at freepascal.org
Fri Dec 9 12:09:22 CET 2011
On Fri, 9 Dec 2011, Marco van de Voort wrote:
> In our previous episode, Felipe Monteiro de Carvalho said:
>> On Fri, Dec 9, 2011 at 10:39 AM, Marco van de Voort <marcov at stack.nl> wrote:
>>> I thought that discussion had established that a timezone based on
>>> fpgettimeofday is not reliable on Linux? Yet, I see it in this patch?
>> In my tests it worked. What do you propose instead?
> Not adding routines to crossplatform interfaces till it is demonstrated it
> is properly implementable on all platforms. (or at least *nix, OSX and
> Windows, with *nix having some overlap with OS X)
> Crossplatform functions which are only stubs on some platforms are useless
> and should not be added.
I don't see the problem.
As far as I can see, NowUTC should simply return the kernel time and not perform
the shift to local time (which Now() should do).
Surely this works on all platforms ?
More information about the fpc-devel