Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Oct 1999 12:55:13 -0400 (EDT)
From:      Garrett Wollman <wollman@khavrinen.lcs.mit.edu>
To:        jin@george.lbl.gov
Cc:        freebsd-bugs@FreeBSD.ORG
Subject:   Re: bin/14472: date for Y#K
Message-ID:  <199910251655.MAA79700@khavrinen.lcs.mit.edu>
In-Reply-To: <199910251620.JAA68775@freefall.freebsd.org>
References:  <199910251620.JAA68775@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
<<On Mon, 25 Oct 1999 09:20:01 -0700 (PDT), jin@george.lbl.gov said:

>  I tried to tracing downto the time2 in /usr/src/lib/libc/stdtime/localtime.c
>  but had no clue how it works. That is, I could not find how the 2037 is set.
>  Any idea how we can fix this limitation?
 
It is defined by being precisely 2**31 - 1 seconds after the beginning
of the epoch.  On systems where time_t is defined as a 64-bit type,
this obviously extends to 2**63 - 1 seconds, or 106 trillion years.

-GAWollman

--
Garrett A. Wollman   | O Siem / We are all family / O Siem / We're all the same
wollman@lcs.mit.edu  | O Siem / The fires of freedom 
Opinions not those of| Dance in the burning flame
MIT, LCS, CRS, or NSA|                     - Susan Aglukark and Chad Irschick


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199910251655.MAA79700>