Skip to content

Commit 8f2799c

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 0454629 commit 8f2799c

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
@@ -5740,15 +5740,18 @@ SELECT regexp_matches('abc01234xyz', '(?:(.*?)(\d+)(.*)){1,1}');
57405740
</row>
57415741
<row>
57425742
<entry><literal>TZ</literal></entry>
5743-
<entry>upper case time-zone name</entry>
5743+
<entry>upper case time-zone abbreviation
5744+
(only supported in <function>to_char</>)</entry>
57445745
</row>
57455746
<row>
57465747
<entry><literal>tz</literal></entry>
5747-
<entry>lower case time-zone name</entry>
5748+
<entry>lower case time-zone abbreviation
5749+
(only supported in <function>to_char</>)</entry>
57485750
</row>
57495751
<row>
57505752
<entry><literal>OF</literal></entry>
5751-
<entry>time-zone offset</entry>
5753+
<entry>time-zone offset from UTC
5754+
(only supported in <function>to_char</>)</entry>
57525755
</row>
57535756
</tbody>
57545757
</tgroup>

0 commit comments

Comments
 (0)