title: Convert double to struct tm
body: <p>I have a <code>double</code> containing seconds. I would like to convert this into a <code>struct tm</code>.</p>
  
  <p>I can't find a standard function which accomplishes this. Do I have to fill out the <code>struct tm</code> by hand?</p>
  
  <p>I just <a href="https://stackoverflow.com/questions/31000399/convert-double-to-time-t">accidentally asked this</a> about converting to a <code>time_t</code> and <a href="http://www.StackOverflow.com">http://www.StackOverflow.com</a> will not let me post unless I link it.</p>