bug-coreutils
[Top][All Lists]
Advanced

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

Re: date overflow in year 2038


From: Eric Blake
Subject: Re: date overflow in year 2038
Date: Fri, 13 Feb 2009 23:08:14 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.19) Gecko/20081209 Thunderbird/2.0.0.19 Mnenhy/0.7.6.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to David M. Dowdle on 2/13/2009 8:45 PM:
> clouded:~> date -d "Fri Jan 19 03:14:08 UTC 2038" +%s
> date: invalid date `Fri Jan 19 03:14:08 UTC 2038'
> clouded:~>
> 
> 03:14:07 is apparently when 32bit time_t hits MAXINT

Yep, and that's why many newer systems are switching to 64-bit time_t.
But changing the size of size_t is an ABI difference, so not one that you
can easily port to older kernels.

> I'd rank this as low priority, but people doing things like 30 year
> mortages will be hitting this already.

Not a bug in coreutils, but an inherent limitation in your kernel.  Just
like the old limitation that you couldn't have a file larger than 2GB
until you upgraded to a kernel with 64-bit off_t support.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkmWX84ACgkQ84KuGfSFAYADuQCfQPQT5VjqnZVakHQNEir5+dcA
rmEAoKr/RhlZyRR4IcquH0807b8WaUEF
=P2sa
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]