2005-04-30 22:19:56 +02:00
|
|
|
#include "cache.h"
|
|
|
|
|
|
|
|
int main(int argc, char **argv)
|
|
|
|
{
|
|
|
|
int i;
|
|
|
|
|
|
|
|
for (i = 1; i < argc; i++) {
|
|
|
|
char result[100];
|
|
|
|
time_t t;
|
|
|
|
|
|
|
|
memcpy(result, "bad", 4);
|
|
|
|
parse_date(argv[i], result, sizeof(result));
|
|
|
|
t = strtoul(result, NULL, 0);
|
2005-05-01 21:34:56 +02:00
|
|
|
printf("%s -> %s -> %s", argv[i], result, ctime(&t));
|
2005-11-15 09:07:04 +01:00
|
|
|
|
|
|
|
t = approxidate(argv[i]);
|
|
|
|
printf("%s -> %s\n", argv[i], ctime(&t));
|
2005-04-30 22:19:56 +02:00
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
}
|