[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: odd date/time stamps



On Fri, 6 Sep 2002, Seth Arnold wrote:

> I let my laptop run out of battery while on sleep. It turns out it
> doesn't do any nice suspend-to-disk things, it just dies.. Anyway, I
> found some files like this:
> -rw-r--r--    1 root     root           24 Jan  1  1904 modules.pnpbiosmap
> -rw-r--r--    1 root     root           29 Jan  1  1904 modules.parportmap
>
> How on earth did the time get set to jan 1 1904?? 1970 I could
> understand.. but 1904 just baffles me. (I think I've heard excel
> stores dates as offsets since jan 1 1904, but unix never seemed
> to like 1904. :)

Unix stores dates as a _signed_ offset since jan 1 1970.

The 2^31 bits in each direction is good for about 68 years,
up to 2038 in one direction and 1902 in the other.

regards,

Rik
-- 
Bravely reimplemented by the knights who say "NIH".

http://www.surriel.com/		http://distro.conectiva.com/

Spamtraps of the month:  september@surriel.com trac@trac.org