title: Convert long int to const time_t
body: <p>I have variable tmit: <code>long tmit;</code>. I got error in this code:</p>
  
  <pre><code>printf("Time: %s",ctime(&amp;tmit));
  </code></pre>
  
  <p>And error say: <code>Cannot convert 'long int*' to 'const time_t* {aka const long long int*}' for argument '1' to 'char* ctime(const time_t*)'</code>
  My question is, how convert long to time_t without lossing any information about time or how change this code, if I like to see date. I working on this <a href="https://stackoverflow.com/a/19835285/2050745">answer</a>, but I got error. </p>