bug-coreutils
[Top][All Lists]
Advanced

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

date overflow in year 2038


From: David M. Dowdle
Subject: date overflow in year 2038
Date: Fri, 13 Feb 2009 19:45:43 -0800 (PST)


clouded:~> date -d "Fri Jan 19 03:14:06 UTC 2038" +%s
2147483646
clouded:~> date -d "Fri Jan 19 03:14:07 UTC 2038" +%s
2147483647
clouded:~> date -d "Fri Jan 19 03:14:08 UTC 2038" +%s
date: invalid date `Fri Jan 19 03:14:08 UTC 2038'
clouded:~>



clouded:~> date --version
date (GNU coreutils) 6.10
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.


03:14:07 is apparently when 32bit time_t hits MAXINT


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






reply via email to

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