QNX RTOS v4 Knowledge Base
     
    
  
QNX RTOS v4 Knowledge Base
  
    
      
        
          
            | Title  | 
            Year 2038 issue | 
           
          
            | Ref. No.  | 
            QNX.000004631 | 
           
        
          
            | Category(ies)  | 
            Year 2000, Utilities | 
           
          
            | Issue  | 
            The maximum value of a 32-bit signed integer is 2^31 (two to the thirty-first power), or roughly 2.1 billion.  Since QNX keeps the date as the number of seconds passed since January 1, 1970, doing the math (i.e., 2^31=2,147,483,648), we see this integer will overflow after 68 years. Therefor, the maximum date the integer will store is the year 2038. How will QNX solve this problem?
 
  | 
           
          
            | Solution  | 
            This has not been yet been addressed by QNX Software Systems.  The solution MAY be one of two things:  
  1)  Soon everything will be 64-bit. 2)  QNX libraries will treat the time_t as an unsigned long -->68*2=136 years.
  | 
           
         
       |