summaryrefslogtreecommitdiff
path: root/tests/date
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1997-07-12 21:07:26 +0000
committerJim Meyering <jim@meyering.net>1997-07-12 21:07:26 +0000
commit0e6b6d4c5cd2af39944c4b56df8b8eb975445360 (patch)
tree9f5dff5260496159b265faff87a676622365e2b5 /tests/date
parent309b8c57fbd82003683329e7a7f93047d50980b4 (diff)
downloadcoreutils-0e6b6d4c5cd2af39944c4b56df8b8eb975445360.tar.xz
add utc-1
Diffstat (limited to 'tests/date')
-rw-r--r--tests/date/Test.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/date/Test.pm b/tests/date/Test.pm
index 9bf204e25..e6bad12bb 100644
--- a/tests/date/Test.pm
+++ b/tests/date/Test.pm
@@ -83,6 +83,9 @@ 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],
+ ['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],
+
# FIXME: add a lot more...
);
@@ -95,6 +98,9 @@ sub test_vector
push (@tv, [$test_name, $flags, $in, "$exp\n", $ret]);
}
+ $Test::env{'utc-0'} = ['TZ=EST5EDT'];
+ $Test::env{'utc-1'} = ['TZ=UTC+2'];
+
return @tv;
}