For example, if I have a time 99248, thats 1 day, 3 hours, 34 minutes. How do I get it to display that?
From
http://www.cplusplus.com/reference/ctime/
You can convert the time_t to a struct tm, which has member for days, ..., hours, minutes, ...
gmtime Convert time_t to tm as UTC time
localtime Convert time_t to tm as local time |
Then you can format the time using
strftime Format time as string |
Andy
Last edited on