summaryrefslogtreecommitdiff
path: root/tests/date/Test.pm
diff options
context:
space:
mode:
Diffstat (limited to 'tests/date/Test.pm')
-rw-r--r--tests/date/Test.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/date/Test.pm b/tests/date/Test.pm
index e6bad12bb..00813d0fb 100644
--- a/tests/date/Test.pm
+++ b/tests/date/Test.pm
@@ -84,7 +84,11 @@ sub test_vector
['next-y', "-d '$d1 next year' '+%Y-%m-%d %T'", {}, "$dy $t0", 0],
['utc-0', "-u -d '08/01/97 6:00' '+%D,%H:%M'", {}, "08/01/97,10:00", 0],
- ['utc-1', "-d '1970-01-01 00:00:01' '+%s'", {}, "7201", 0],
+ ['utc-1', "-d '1970-01-01 00:00:01' +%s", {}, "7201", 0],
+
+ ['date2sec-0', "-d 2000-01-01 +%s", {}, "946684800", 0],
+ ['sec2date-0', "-d '1970-01-01 UTC 946684800 sec' +'%Y-%m-%d %T %z'", {},
+ "2000-01-01 00:00:00 +0000", 0],
# FIXME: add a lot more...
);