Teach fmt-patch to write individual files.
[git/fastimport.git] / test-date.c
blob93e802759f1906665857c82c71f589b7d636b540
1 #include <stdio.h>
2 #include <time.h>
4 #include "cache.h"
6 int main(int argc, char **argv)
8 int i;
10 for (i = 1; i < argc; i++) {
11 char result[100];
12 time_t t;
14 memcpy(result, "bad", 4);
15 parse_date(argv[i], result, sizeof(result));
16 t = strtoul(result, NULL, 0);
17 printf("%s -> %s -> %s", argv[i], result, ctime(&t));
19 t = approxidate(argv[i]);
20 printf("%s -> %s\n", argv[i], ctime(&t));
22 return 0;