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

Re: Debian and the millenium bug



Amos Shapira wrote:
  >In message <[🔎] xe1lnwx6mu7.fsf@paycheck.thok.org> you write:
  >|> a 64 bit variable, it's good for another 4000 years.
  >|
  >|Uhhh -- no.  If it went from 32 bits to *33* bits, that would get us
  >
  >Actually, the current limit of 68 years (1970 + 68 = 2038) is posed by
  >the used of SIGNED int (31 bits) instead of unsigned bits:
  >...
  >
  >Just moving to unsigned int will give you 68 more years, up to year 2106:
  >
but would make it impossible to represent dates from 1902 to 1969, which we
can do now.
  >
  >So it's even simpler in regards of type size, but moving to an
  >unsigned int may cause serious troubles in comparing dates (unless you
  >use some functions which hide thedetails).
You would break anything that used dates earlier than 1970.

Why does glibc2 not use long long (64 bits) for dates, insead of long int
(32 bits)?  Surely we ought to change this now along with all the other
libc6 changes?

-- 
Oliver Elphick                                Oliver.Elphick@lfix.co.uk
Isle of Wight                              http://www.lfix.co.uk/oliver

PGP key from public servers; key ID 32B8FAA1

Unsolicited email advertisements are not welcome; any person sending
such will be invoiced for telephone time used in downloading together
with a £25 administration charge.



--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-request@lists.debian.org .
Trouble?  e-mail to templin@bucknell.edu .


Reply to: