From f6198493b8f18025a3861ba42f1097d082281ec2 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed, 14 Sep 2005 09:54:15 +0000 Subject: (tz-5w, tz-5wf): Test new %:z format with a field width. --- tests/misc/date | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/misc/date') diff --git a/tests/misc/date b/tests/misc/date index 6dae0e019..0b8a3d77e 100755 --- a/tests/misc/date +++ b/tests/misc/date @@ -193,6 +193,11 @@ my @Tests = ['tz-5', '+%:z', {OUT=>"-00:01"}, {ENV=>'TZ=XXX0:01'}], + # Accept %:z with a field width before the `:'. + ['tz-5w','+%8:z', {OUT=>"-0000:01"}, {ENV=>'TZ=XXX0:01'}], + # Don't recognize %:z with a field width between the `:' and the `z'. + ['tz-5wf', '+%:8z', {OUT=>"%:8z"}, {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"}], -- cgit v1.2.3-54-g00ecf