[ubuntu-uk] Date issues with perl and 2038-bug?
philip at stuphi.co.uk
Fri Feb 13 09:09:44 GMT 2009
2009/2/13 Matthew Macdonald-Wallace <matthew at truthisfreedom.org.uk>:
> 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?
I guess the 2038 problem is if the unix time is stored as a signed 32
bit int in which case the maximum number is 2147483648 or thereabouts
or 01/19/2038 3:14am. So anything above that number could cause
More information about the ubuntu-uk