summaryrefslogtreecommitdiff
path: root/test-date.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-11-15 08:07:04 (GMT)
committerJunio C Hamano <junkio@cox.net>2005-11-17 07:54:37 (GMT)
commitf30c95dd76800fbd66fb66180d67c09bab678282 (patch)
treed1bb16b919a119cca6ee001f755f83251a2c2964 /test-date.c
parent3c07b1d19491aa9acb9f8e86486f0b80f976edf9 (diff)
downloadgit-f30c95dd76800fbd66fb66180d67c09bab678282.zip
git-f30c95dd76800fbd66fb66180d67c09bab678282.tar.gz
git-f30c95dd76800fbd66fb66180d67c09bab678282.tar.bz2
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 6fe3e28..93e8027 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;
}