Staging
v0.7.0
v0.7.0
Revision e94a45de42cea90f6fbd313cfabb5dd10d49e03c authored by James Bowes on 04 February 2008, 13:13:07 UTC, committed by Junio C Hamano on 11 February 2008, 20:51:55 UTC
Signed-off-by: James Bowes <jbowes@dangerouslyinc.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 9c21743
test-date.c
#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 ...