Skip to content

Commit 09e9aab

Browse files
committed
Fix documentation of to_char/to_timestamp TZ, tz, OF formatting patterns.
These are only supported in to_char, not in the other direction, but the documentation failed to mention that. Also, describe TZ/tz as printing the time zone "abbreviation", not "name", because what they print is elsewhere referred to that way. Per bug #14558.
1 parent cfb022d commit 09e9aab

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

doc/src/sgml/func.sgml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5746,15 +5746,18 @@ SELECT regexp_matches('abc01234xyz', '(?:(.*?)(\d+)(.*)){1,1}');
57465746
</row>
57475747
<row>
57485748
<entry><literal>TZ</literal></entry>
5749-
<entry>upper case time-zone name</entry>
5749+
<entry>upper case time-zone abbreviation
5750+
(only supported in <function>to_char</>)</entry>
57505751
</row>
57515752
<row>
57525753
<entry><literal>tz</literal></entry>
5753-
<entry>lower case time-zone name</entry>
5754+
<entry>lower case time-zone abbreviation
5755+
(only supported in <function>to_char</>)</entry>
57545756
</row>
57555757
<row>
57565758
<entry><literal>OF</literal></entry>
5757-
<entry>time-zone offset</entry>
5759+
<entry>time-zone offset from UTC
5760+
(only supported in <function>to_char</>)</entry>
57585761
</row>
57595762
</tbody>
57605763
</tgroup>

0 commit comments

Comments
 (0)