converting string to time

Ambitious contributor
27Apr2010,12:55   #1
answerme's Avatar
have a string "072455.00" this represents UTC time
How should i convert this particular string to time
Go4Expert Member
27Apr2010,13:15   #2
davidk's Avatar
I guess it means 07:24:55.

To convert your string into time:
1. take by 2 characters from the string: hours, minutes and seconds
2. convert them into numbers
3. use 'struct tm' and 'mktime()' of time.h header