]> git.ipfire.org Git - thirdparty/git.git/blob - test-date.c
Merge branch 'js/maint-all-implies-HEAD' into maint
[thirdparty/git.git] / test-date.c
1 #include "cache.h"
2
3 int main(int argc, char **argv)
4 {
5 int i;
6
7 for (i = 1; i < argc; i++) {
8 char result[100];
9 time_t t;
10
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));
15
16 t = approxidate(argv[i]);
17 printf("%s -> %s\n", argv[i], ctime(&t));
18 }
19 return 0;
20 }