summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1997-07-12 21:57:38 +0000
committerJim Meyering <jim@meyering.net>1997-07-12 21:57:38 +0000
commitf1994a3f6e3f874ed0fad4faf3843671378244e0 (patch)
treeaec2165cdf968e81c6b043c64a4de55b65579a61 /tests
parentb6a57ff354f49e9e12c7952e6ffea0c9cf146097 (diff)
downloadcoreutils-f1994a3f6e3f874ed0fad4faf3843671378244e0.tar.xz
*** empty log message ***
Diffstat (limited to 'tests')
-rw-r--r--tests/date/Test.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/date/Test.pm b/tests/date/Test.pm
index 00813d0fb..4dc51099b 100644
--- a/tests/date/Test.pm
+++ b/tests/date/Test.pm
@@ -83,9 +83,13 @@ sub test_vector
['next-mo', "-d '$d1 next month' '+%Y-%m-%d %T'", {}, "$dm $t0", 0],
['next-y', "-d '$d1 next year' '+%Y-%m-%d %T'", {}, "$dy $t0", 0],
+ # This failed for sh-utils-1.16.
['utc-0', "-u -d '08/01/97 6:00' '+%D,%H:%M'", {}, "08/01/97,10:00", 0],
+
+ # From the examples in the documentation.
['utc-1', "-d '1970-01-01 00:00:01' +%s", {}, "7201", 0],
+ # From the examples in the documentation.
['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],