N
Nick Keighley
Hi,
this is probably quite easy...
How do I convert a UTC string into a time_t?
eg. "2007-12-18 13:37:26" -> a time_t.
Now FAQ 13.3 says use mktime() to convert a struct tm into
a time_t or you have to use some non-standard thing to parse the
string.
Assume I can parse the string and build a struct tm, how can I turn
it
into a time_t?
mktime() works on *local time* so it is going to apply the timezone
change
(the incoming string may have come from another timezone).
this is probably quite easy...
How do I convert a UTC string into a time_t?
eg. "2007-12-18 13:37:26" -> a time_t.
Now FAQ 13.3 says use mktime() to convert a struct tm into
a time_t or you have to use some non-standard thing to parse the
string.
Assume I can parse the string and build a struct tm, how can I turn
it
into a time_t?
mktime() works on *local time* so it is going to apply the timezone
change
(the incoming string may have come from another timezone).