If you are looking for the epic motorcycle journey blog that I've written, please see the Miles By Motorcycle site I put together. 
  • End of the World is clearly 2038, not 2012
    10/17/2009 3:28PM

    There's alot of talk about 2012 and the end of the world. This is all clearly false. The end of the world will be on Mon Jan 18, 2038 at 22:14:07. Mark your calendars.

    #include <stdio.h>
    #include <time.h>
    #include <limits.h>
    int main(void)
            time_t end_of_time;
            end_of_time = INT_MAX;
            printf("End of the world will be: %s\n",
                    asctime(localtime(&end_of_time)), end_of_time );

    End of the world will be: Mon Jan 18 22:14:07 2038

  • Comment By:
    10/17/2009 3:54PM
    <laugh> In which code did you find this?
  • Comment By:
    10/17/2009 3:58PM
    It's old Unix lore. I got an email about 2012 and couldn't remember the exact end of the Unix epoch, so I whipped up that little bit of C to remind myself.
You must be logged into an account to post comments.