1 #include "cache.h"
3 int main(int argc, char **argv)
4 {
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));
18 }
19 return 0;
20 }