This parses GMT/Timezone(+/-) formatted time sting like 'Sun, 04 May 2008 18:50:39 GMT', 'Mon, 05 May 2008 03:50:39 +0900' and returns as universal time.
time_t t = time(NULL); char *s = qTimeGetGmtStr(t); printf("%d\n", t); printf("%s\n", s); printf("%d\n", qTimeParseGmtStr(s)); // this must be same as t free(s);
|