miller/c/experimental/ttmx.c
2017-04-14 07:23:24 -04:00

10 lines
268 B
C

#include <stdio.h>
#include <string.h>
#include <time.h>
char * strptimex(const char *buf, const char *fmt, struct tm *tm);
int main(void) {
struct tm tm;
char* foo = strptimex("2017-01-09T11:47:48Z", "%Y-%m-%dT%H:%M:%SZ", &tm);
printf("[%s]\n", foo);
return 0;
}