[fpc-devel] Problem with Now() and time changed by ntpd

Henry Vermaak henry.vermaak at gmail.com
Tue Nov 1 11:58:14 CET 2011


On 01/11/11 10:30, Michael Van Canneyt wrote:
> We'll simply need to store the next moment when the DST correction
> changes, compare the result of gettimeofday with that and re-base the
> time calculation. If we decide to add some check for the timestamp of
> the timezone file - that would make Date(), Time() and Now() VERY
> expensive operations.

This seems to be what libc does (from looking at an strace of some gcc 
binary).

Henry



More information about the fpc-devel mailing list