[Ilugc] Year 2038 problem

  • From: shmgnu@xxxxxxxxx (Shyam S)
  • Date: Mon Apr 18 12:11:37 2005

Dear Group.

I  think  you  all are  familiar  with  the  year 2038  problem,  more
precisely, the last  date a 32 bit computer  will handle properly will
be 08:44:07 of Jan 19, 2038.

Any other alternative  than  a 64 bit  computer? Just check  out this
program.

Regards
$hyam

-----timecheck.c----

#include<time.h>
#include<unistd.h>

main()

       {
       time_t now;

            for(now=2147483645;now<2147483651;now++){
            sleep(1);
                 printf("The time is %s\n",ctime(&now));
            }
       exit(0);
       }

----code ends here-----

Other related posts: