Mailinglist Archive: opensuse (3337 mails)

< Previous Next >
Re: [opensuse] This will never happen again
  • From: "Peter Flodin" <pflodin@xxxxxxxxx>
  • Date: Wed, 12 Apr 2006 22:46:49 +1000
  • Message-id: <8b1a1e10604120546j6825cc3of7d2a39d7666ecb8@xxxxxxxxxxxxxx>
On 4/12/06, houghi <houghi@xxxxxxxxxx> wrote:
> However there are some dates that ARE important:
> 2038/01/19: (03:14:07 GMT) 2**31 seconds from 00:00:00 GMT, Thursday
> 1st January 1970 (UNIX's birthday). The seconds counter used for date/time
> information in UNIX and C and C++ will reach 2,147,483,647 - the largest
> number which can be stored as a 32-bit signed integer. As a result an

Can someone running Suse x64, set their clock to 2038/01/19 03:14:07
UTC, and see what value time() returns.

A long int is only a _minimum_ of 32 bits. If you compile on a 64-bit
system, the datatype that time() returns, should be 64 bit.

Of course in 2038, we probably don't even use 64 bit machines anymore...

Peter 'Pflodo' Flodin
< Previous Next >
Follow Ups