For example, if I have a time 99248, thats 1 day, 3 hours, 34 minutes. How do I get it to display that?
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
Last edited on