2005-05-01 00:19:56 +04:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <time.h>
|
|
|
|
|
|
|
|
#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 23:34:56 +04:00
|
|
|
printf("%s -> %s -> %s", argv[i], result, ctime(&t));
|
2005-11-15 11:07:04 +03:00
|
|
|
|
|
|
|
t = approxidate(argv[i]);
|
|
|
|
printf("%s -> %s\n", argv[i], ctime(&t));
|
2005-05-01 00:19:56 +04:00
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
}
|