converting string to time

answerme's Avatar, Join Date: Dec 2007
Ambitious contributor
have a string "072455.00" this represents UTC time
How should i convert this particular string to time
0
davidk's Avatar, Join Date: Mar 2010
Go4Expert Member
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