title: How to convert st_mtime (which get from stat function) to string or char
body: <p>I need to convert st_mtime to string format for passing it to java layer, i try to use this example <a href="http://www.cplusplus.com/forum/unices/10342/" rel="noreferrer">http://www.cplusplus.com/forum/unices/10342/</a> but compiler produce errors  </p>
  
  <blockquote>
    <p>invalid conversion from 'long unsigned int*' to 'const time_t* {aka
    long int const*}'</p>
    
    <p>initializing argument 1 of 'tm* localtime(const time_t*)'
    [-fpermissive]</p>
  </blockquote>
  
  <p>What i doing wrong, how to get time creation of file using stat function in string presentation.</p>
  
  <p>Help please.</p>