On 2012-08-07 02:10, David Brownlee wrote:
On 6 August 2012 18:28, Toby Thain <toby at
telegraphics.com.au> wrote:
On 06/08/12 11:44 AM, Johnny Billquist wrote:
...
Unix choose 32-bit integers, counting seconds since 1970. Also a rather
restricted range, and yes, it will run out in 2038, or something like
The 32 bit representation does.
$ date -r `echo '2^31-1'|bc`
Mon 18 Jan 2038 22:14:07 EST
Breaking many utilities:
$ date -r `echo '2^31'|bc`
Fri 13 Dec 1901 15:45:52 EST
But most Unixes now use a 64 bit representation, I believe.
Even those on VAX :)
[...]
Well, this is not an architecture issue, but a software issue. A VAX
might be running VMS, in which case 2038 is not a problem at all, or
running some version of Unix, in which case it might be, depending on
the size of the time.
I could "fix" 2.11BSD for a PDP-11 as well, if I wanted to. It's not
that hard to do 64 bit integers on a PDP-11, it just takes a few more
instructions...
Johnny