diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2005-09-14 06:58:44 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2005-09-14 06:58:44 +0000 |
commit | 20b858a1e67568517a3ae30cb894a2f0e9215b20 (patch) | |
tree | 9228f58d551dd273194c4c00781110e9016791dc /tests | |
parent | 33b49b7cac2441b93d4cfddf301f8bf2f134c237 (diff) | |
download | coreutils-20b858a1e67568517a3ae30cb894a2f0e9215b20.tar.xz |
Add tz-1 through tz-5.
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/misc/date | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/misc/date b/tests/misc/date index 3bdcdf45f..6dae0e019 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"}], |