Bug 119591

Summary: [amd64] [patch] time_t on 64-bit architecture
Product: Base System Reporter: IKEGAMI Akiko <gami>
Component: amd64Assignee: freebsd-amd64 (Nobody) <amd64>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 6.3-PRERELEASE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description IKEGAMI Akiko 2008-01-12 11:20:00 UTC
	amd64's time_t is 64-bit, but comment at clock.c is
		32-bit time_t's can't reach leap years before 1904 or after 2036

How-To-Repeat: 	You should ride time machine, and you can enjoy "Twilight zone".
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2008-01-12 14:35:02 UTC
Responsible Changed
From-To: gnats-admin->freebsd-amd64

Reclassify.
Comment 2 Peter Jeremy 2008-01-12 20:50:31 UTC
Whilst I agree that the existing LEAPYEAR macro can only handle
dates between 1901 and 2099, this macro is only used to convert
timestamps to/from the RTC - and currently that code will only
support dates between 1970 and 2069.  There is provision to
separately store the century in the RTC but this code is not
currently active.

Note that the code to write the time back to the RTC currently
steps year-by-year and is therefore also needs a rethink before
the range is massively increased.

-- 
Peter Jeremy
Comment 3 Andriy Gapon freebsd_committer freebsd_triage 2010-12-05 10:41:10 UTC
State Changed
From-To: open->closed

Let's reopen this PR somewhen closer to year 2100 
if x86 architecture and RTC are still around then.