We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1f49f75 + e4e9d5f commit e577fecCopy full SHA for e577fec
t/t0006-date.sh
@@ -70,6 +70,14 @@ check_show 'format:%s' '123456789 +1234' 123456789
70
check_show 'format:%s' '123456789 -1234' 123456789
71
check_show 'format-local:%s' '123456789 -1234' 123456789
72
73
+# negative TZ offset
74
+TIME='1466000000 -0200'
75
+check_show iso8601 "$TIME" '2016-06-15 12:13:20 -0200'
76
+check_show iso8601-strict "$TIME" '2016-06-15T12:13:20-02:00'
77
+check_show rfc2822 "$TIME" 'Wed, 15 Jun 2016 12:13:20 -0200'
78
+check_show default "$TIME" 'Wed Jun 15 12:13:20 2016 -0200'
79
+check_show raw "$TIME" '1466000000 -0200'
80
+
81
# arbitrary time absurdly far in the future
82
FUTURE="5758122296 -0400"
83
check_show iso "$FUTURE" "2152-06-19 18:24:56 -0400" TIME_IS_64BIT,TIME_T_IS_64BIT
0 commit comments