The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > The Lounge > What's on Your Mind?
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 08-17-2007
jim mcnamara jim mcnamara is offline
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 4,365
32 bit time_t values have a max: Mon Jan 18 20:14:07 2038

The result above comes from epoch seconds = 2147483647.

This is largest positive value a 32 bit signed integer supports. If you add one to that value and then display it as a date/time value you get the earliest date your system supports.

There was a thread with code on this yesterday - search for it.
Reply With Quote