Windows: Wrap execve so that shell scripts can be invoked.
[4msysgit-hv.git] / test-date.c
blob62e8f2387a1cab97ec1c71d1993d082274e17bf5
1 #include "cache.h"
3 int main(int argc, char **argv)
5 int i;
7 for (i = 1; i < argc; i++) {
8 char result[100];
9 time_t t;
11 memcpy(result, "bad", 4);
12 parse_date(argv[i], result, sizeof(result));
13 t = strtoul(result, NULL, 0);
14 printf("%s -> %s -> %s", argv[i], result, ctime(&t));
16 t = approxidate(argv[i]);
17 printf("%s -> %s\n", argv[i], ctime(&t));
19 return 0;