1 2 3 4 5 6 7 8 9 10 11 12 13
#if defined(__linux__) || defined(__MINT__) # define _GNU_SOURCE /* strptime(), getsubopt() */ #endif #include <time.h> int main(int argc, char **argv) { struct tm tm; strptime(*argv, "%D", &tm); return 0; }