This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <time.h> | |
/* parses only YYYY-MM-DDTHH:MM:SSZ */ | |
time_t parseiso8601utc(const char *date) { | |
struct tm tt = {0}; | |
double seconds; | |
if (sscanf(date, "%04d-%02d-%02dT%02d:%02d:%lfZ", | |
&tt.tm_year, &tt.tm_mon, &tt.tm_mday, | |
&tt.tm_hour, &tt.tm_min, &seconds) != 6) | |
return -1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
the be and of a in to have to it I that for you he with on do say this | |
they at but we his from that not n't n't by she or as what go their | |
can who get if would her all my make about know will as up one time | |
there year so think when which them some me people take out into just | |
see him your come could now than like other how then its our two more | |
these want way look first also new because day more use no man find | |
here thing give many well only those tell one very her even back any | |
good woman through us life child there work down may after should call | |
world over school still try in as last ask need too feel three when | |
state never become between high really something most another much |
NewerOlder