[ubuntu-uk] Date issues with perl and 2038-bug?
michael at thedarkwinter.com
Fri Feb 13 09:13:56 GMT 2009
Matthew, the Unix timestamp is a 32 bit integer, therefore from 0 to
I think Any number above that will give you the date you are looking at,
as it will no longer be in the 32bit range.
In theory you can also have negative number 0 to - 2147483647 though I'm
not sure how the Unix timestamp will read this (probably 1970 again).
On Fri, 2009-02-13 at 08:56 +0000, Matthew Macdonald-Wallace wrote:
> Hi All,
> I've been playing around with a short perl script that tells you the
> UTC wehn the datestamp on your machine will be 1234567890 (23:30:31
> tonight if you're interested) and thought I'd try and invoke the 2038
> bug by passing 9999999999 to the perl script.
> It gives the expected date (00:59:59 Jan 01 1970) however if I then
> put in 9999999998 it gives the same result. This then appears to
> happen for any combination of n999999999 where n > 3.
> Is this expected behavior? If not, who do I notify and which package
> do I file a bug against?
> Matthew Macdonald-Wallace
> matthew at truthisfreedom.org.uk
More information about the ubuntu-uk