@@ -2020,19 +2020,27 @@ MINUTE TO SECOND
2020
2020
</row>
2021
2021
<row>
2022
2022
<entry><literal>04:05:06.789-8</literal></entry>
2023
- <entry>ISO 8601</entry>
2023
+ <entry>ISO 8601, with time zone as UTC offset </entry>
2024
2024
</row>
2025
2025
<row>
2026
2026
<entry><literal>04:05:06-08:00</literal></entry>
2027
- <entry>ISO 8601</entry>
2027
+ <entry>ISO 8601, with time zone as UTC offset </entry>
2028
2028
</row>
2029
2029
<row>
2030
2030
<entry><literal>04:05-08:00</literal></entry>
2031
- <entry>ISO 8601</entry>
2031
+ <entry>ISO 8601, with time zone as UTC offset </entry>
2032
2032
</row>
2033
2033
<row>
2034
2034
<entry><literal>040506-08</literal></entry>
2035
- <entry>ISO 8601</entry>
2035
+ <entry>ISO 8601, with time zone as UTC offset</entry>
2036
+ </row>
2037
+ <row>
2038
+ <entry><literal>040506+0730</literal></entry>
2039
+ <entry>ISO 8601, with fractional-hour time zone as UTC offset</entry>
2040
+ </row>
2041
+ <row>
2042
+ <entry><literal>040506+07:30:00</literal></entry>
2043
+ <entry>UTC offset specified to seconds (not allowed in ISO 8601)</entry>
2036
2044
</row>
2037
2045
<row>
2038
2046
<entry><literal>04:05:06 PST</literal></entry>
@@ -2068,25 +2076,29 @@ MINUTE TO SECOND
2068
2076
<entry><literal>PST8PDT</literal></entry>
2069
2077
<entry>POSIX-style time zone specification</entry>
2070
2078
</row>
2079
+ <row>
2080
+ <entry><literal>-8:00:00</literal></entry>
2081
+ <entry>UTC offset for PST</entry>
2082
+ </row>
2071
2083
<row>
2072
2084
<entry><literal>-8:00</literal></entry>
2073
- <entry>ISO-8601 offset for PST</entry>
2085
+ <entry>UTC offset for PST (ISO 8601 extended format) </entry>
2074
2086
</row>
2075
2087
<row>
2076
2088
<entry><literal>-800</literal></entry>
2077
- <entry>ISO-8601 offset for PST</entry>
2089
+ <entry>UTC offset for PST (ISO 8601 basic format) </entry>
2078
2090
</row>
2079
2091
<row>
2080
2092
<entry><literal>-8</literal></entry>
2081
- <entry>ISO-8601 offset for PST</entry>
2093
+ <entry>UTC offset for PST (ISO 8601 basic format) </entry>
2082
2094
</row>
2083
2095
<row>
2084
2096
<entry><literal>zulu</literal></entry>
2085
2097
<entry>Military abbreviation for UTC</entry>
2086
2098
</row>
2087
2099
<row>
2088
2100
<entry><literal>z</literal></entry>
2089
- <entry>Short form of <literal>zulu</literal></entry>
2101
+ <entry>Short form of <literal>zulu</literal> (also in ISO 8601) </entry>
2090
2102
</row>
2091
2103
</tbody>
2092
2104
</tgroup>
@@ -2437,6 +2449,24 @@ TIMESTAMP WITH TIME ZONE '2004-10-19 10:23:54+02'
2437
2449
</tgroup>
2438
2450
</table>
2439
2451
2452
+ <para>
2453
+ In the <acronym>ISO</acronym> style, the time zone is always shown as
2454
+ a signed numeric offset from UTC, with positive sign used for zones
2455
+ east of Greenwich. The offset will be shown
2456
+ as <replaceable>hh</replaceable> (hours only) if it is an integral
2457
+ number of hours, else
2458
+ as <replaceable>hh</replaceable>:<replaceable>mm</replaceable> if it
2459
+ is an integral number of minutes, else as
2460
+ <replaceable>hh</replaceable>:<replaceable>mm</replaceable>:<replaceable>ss</replaceable>.
2461
+ (The third case is not possible with any modern time zone standard,
2462
+ but it can appear when working with timestamps that predate the
2463
+ adoption of standardized time zones.)
2464
+ In the other date styles, the time zone is shown as an alphabetic
2465
+ abbreviation if one is in common use in the current zone. Otherwise
2466
+ it appears as a signed numeric offset in ISO 8601 basic format
2467
+ (<replaceable>hh</replaceable> or <replaceable>hhmm</replaceable>).
2468
+ </para>
2469
+
2440
2470
<para>
2441
2471
The date/time style can be selected by the user using the
2442
2472
<command>SET datestyle</command> command, the <xref
0 commit comments