1#include <stdio.h>
2#include <time.h>
34
#include "cache.h"
56
int main(int argc, char **argv)
7{
8int i;
910
for (i = 1; i < argc; i++) {
11char result[100];
12time_t t;
1314
memcpy(result, "bad", 4);
15parse_date(argv[i], result, sizeof(result));
16t = strtoul(result, NULL, 0);
17printf("%s -> %s -> %s", argv[i], result, ctime(&t));
1819
t = approxidate(argv[i]);
20printf("%s -> %s\n", argv[i], ctime(&t));
21}
22return 0;
23}