title: seemingly complex date time calculations
body: <p>I have this function that should convert them from Ole to UTC8601 standard, but I don't understand how the integer representations of time seem to work.</p>
  
  <p>Can anyone give me some explanation?</p>
  
  <p>the function is called: <code>RipOf_AfxTmFromOleDate</code></p>
  
  <p>containing statements as: <code>nDaysAbsolute %= 146097L;</code>  Where does the value come from and how is it calculated?</p>
  
  <p>where <code>nDaysAbsolute</code> is a <code>long</code> type.</p>
  
  <p>This app gets values from an Oracle database and sends them to another application.</p>