title: Convert Unix/Linux time to Windows FILETIME
body: <p>I am once again going from Windows to Linux, I have to port a function from Windows to Linux that calculates NTP time. Seems simple but the format is in Windows <code>FILETIME</code> format. I sort of have an idea what the differences are but so far I can not correctly convert my Linux time to the Windows <code>FILETIME</code> format. Does anyone have any ideas on how to do this?</p>
  <p>I have seen some articles on how to do this but they all use Win32 functions and I can't use them! I can post the Windows code if this makes no sense.</p>
  <p>They also take the current time and subtract it from January 1st 1900 to get the delta to find NTP, I would assume in Linux I just add the</p>
  <pre><code>const unsigned long EPOCH   = 2208988800UL
  </code></pre>
  <p>to my time to get this result?</p>