From: Paul Eggert Date: Wed, 14 Sep 2005 06:58:44 +0000 (+0000) Subject: Add tz-1 through tz-5. X-Git-Tag: v5.90~228 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=20b858a1e67568517a3ae30cb894a2f0e9215b20;p=thirdparty%2Fcoreutils.git Add tz-1 through tz-5. --- diff --git a/tests/misc/date b/tests/misc/date index 3bdcdf45f2..6dae0e0196 100755 --- a/tests/misc/date +++ b/tests/misc/date @@ -183,6 +183,16 @@ my @Tests = ['ns-max32-r', '--rfc-3339=ns', '-d "2038-01-19 03:14:07.999999999"', {OUT=>"2038-01-19 03:14:07.999999999+00:00"}], + ['tz-1', '+%:::z', {OUT=>"-12:34:56"}, {ENV=>'TZ=XXX12:34:56'}], + + ['tz-2', '+%:::z', {OUT=>"+12:34:56"}, {ENV=>'TZ=XXX-12:34:56'}], + + ['tz-3', '+%::z', {OUT=>"+01:02:03"}, {ENV=>'TZ=XXX-1:02:03'}], + + ['tz-4', '+%:::z', {OUT=>"+12"}, {ENV=>'TZ=XXX-12'}], + + ['tz-5', '+%:z', {OUT=>"-00:01"}, {ENV=>'TZ=XXX0:01'}], + ['ns-relative', '--iso=ns', "-d'1970-01-01 00:00:00.1234567 UTC +961062237.987654321 sec'", {OUT=>"2000-06-15T09:43:58,111111021+0000"}],