post  How to convert time to string in Linux?

albogp (4)   Link to this post
Hi all,

Is there anyone know how to convert time to string with a defined format (in linux) ? In Unix, we can cftime() function, but I can't find it in Linux. Linux has ctime() and ctime_r() function, but we can't define the string format with those function.

Thanks.
Grey Wolf (1407)   Link to this post

Does this help?
http://www.cplusplus.com/reference/clibrary/ctime/strftime.html
Last edited on
albogp (4)   Link to this post
Hi Grey Wolf,

Thank you very much. I have used strftime() function and the problem is solved.

This topic is archived - New replies not allowed.