[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [MiNT] where to fetch local time
On Sat, 25 Nov 2000, Guido Flohr wrote:
> Tgettimeofday (MiNT) always returns the time in UTC (as
> seconds since the epoch).
I just noticed that the library function settimeofday (MINTLIB
seems to build it as a wrapper to Tsettimeofday) ends up altering
localtime, instead of UTC.
For instance, every time K9 receives an NTP packet (NTP runs in
UTC), it changes localtime to match UTC, instead of adjusting
the kernel's UTC reference and leaving localtime alone.
Martin-Éric Racine, IT Consultant * http://funkyware.atari.org/
* May the Funk be with Q! * Author of the Atari TT030 Homepage.