[fpc-devel] NowUTC in the RTL

Tomas Hajny XHajT03 at hajny.biz
Fri Dec 9 12:15:30 CET 2011


On Fri, December 9, 2011 12:09, Michael Van Canneyt wrote:
> 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 ?
 .
 .

...working with UTC natively. ;-)

Tomas





More information about the fpc-devel mailing list