Staging
v0.5.1
v0.5.1
Revision bd9ca0baff88107e26915cdaaf9821dc70a187e3 authored by Junio C Hamano on 12 February 2006, 21:14:53 UTC, committed by Junio C Hamano on 12 February 2006, 21:14:53 UTC
Signed-off-by: Junio C Hamano <junkio@cox.net>
1 parent 4bbdfab
test-date.c
#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);
printf("%s -> %s -> %s", argv[i], result, ctime(&t));
t = approxidate(argv[i]);
printf("%s -> %s\n", argv[i], ctime(&t));
}
return 0;
}
Computing file changes ...