add utc-1
authorJim Meyering <jim@meyering.net>
Sat, 12 Jul 1997 21:07:26 +0000 (21:07 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 12 Jul 1997 21:07:26 +0000 (21:07 +0000)
tests/date/Test.pm

index 9bf204e..e6bad12 100644 (file)
@@ -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;
 }