Hey,
With a program I'm working on now I get the time in one of three different ways:
Fri, 31 Dec 1999 23:59:59 GMT
Friday, 31-Dec-99 23:59:59 GMT
Fri Dec 31 23:59:59 1999
I need to calculate the difference between the time given and the current time. I know there are functions to convert a time_t structure to a string, is there any way to work backwards? I figure if I can get it down to a tm struct or a time_t, I'll be able to use the difftime(?) function to get the difference.
So what I'm asking is, is there a function I can call that converts a string like the above into one of these structures, or will I have to write my own?
Thanks,
Paul