Re: Alpha Linux Miniloader (Milo) now boots via Windows NT ARC

Martin v.Loewis (loewis@cs.tu-berlin.de)
Mon, 16 Oct 1995 23:28:11 +0100 (MET)


> Finally, and most irritatingly, Windows NT seems to store time in a different
> format from Linux and so the Windows NT ARC console complains every time the
> system boots and the date is wrong on Linux every time it boots.

May I take a guess? The time is an 8 byte value, measured in units of
100 nanoseconds since January 1, 1601. This is how all the Win32 file API
interpretes time (the call it UTC, I wonder what is 'universal' to it),
and also how NTFS stores time stamps.

Regards,
Martin

P.S. If N is the NT UTC and U is the Posix UTC as in ctime(3), the relation is:
U = (N/10,000,000) - (369*365+89)*24*3600
You *have* to use 64bit integers here (or doubles), but this should be no
problem on the Alpha.