
June 27th, 2005, 12:21 PM
|
|
Registered User
|
|
Join Date: Jun 2005
Posts: 1
Time spent in forums: 1 m 55 sec
Reputation Power: 0
|
|
|
Conversion from String to Time_t
Hello folks,
I need some help with my C++ program, hope you can offer it to me.
I used fout<<time(0); to write the actual time to a file.
Now I need to transform the string which I retrieve from the file, back to time_t type, to be able to use the difftime function to calculate the time difference between time1 and time2 in seconds.
The problem is, that I am not able to test the time function at the moment, so it might also be possible to use difftime without transformation. I hope you can tell me, if this is so.
Hopefully I managed to describe my problem in an understandable way, as I am no native english speaker.
Best Regards, Betos
|