aboutsummaryrefslogtreecommitdiff
path: root/test-date.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-11-15 00:07:04 -0800
committerJunio C Hamano <junkio@cox.net>2005-11-16 23:54:37 -0800
commitf30c95dd76800fbd66fb66180d67c09bab678282 (patch)
treed1bb16b919a119cca6ee001f755f83251a2c2964 /test-date.c
parent3c07b1d19491aa9acb9f8e86486f0b80f976edf9 (diff)
downloadgit-f30c95dd76800fbd66fb66180d67c09bab678282.tar.gz
git-f30c95dd76800fbd66fb66180d67c09bab678282.tar.xz
Add approxidate test calls.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'test-date.c')
-rw-r--r--test-date.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/test-date.c b/test-date.c
index 6fe3e28b9..93e802759 100644
--- a/test-date.c
+++ b/test-date.c
@@ -15,6 +15,9 @@ int main(int argc, char **argv)
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;
}