[fpc-devel] NowUTC in the RTL

Michael Van Canneyt michael at freepascal.org
Fri Dec 9 12:28:19 CET 2011

On Fri, 9 Dec 2011, Marco van de Voort wrote:

> In our previous episode, Michael Van Canneyt said:
>>> 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).
> IIRC the discussion stated that maintaining timezones in the kernel on linux
> is deprecated?

what does that have to do with the issue ?

The linux kernel returns UTC time, it always has. Now() converts this to local time.
(as does libc). All NowUTC needs to do is return the kernel time.


More information about the fpc-devel mailing list