Commit 10257fc5 authored by Tom Lane's avatar Tom Lane

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.
parent 090f21bb
...@@ -6062,15 +6062,18 @@ SELECT regexp_match('abc01234xyz', '(?:(.*?)(\d+)(.*)){1,1}'); ...@@ -6062,15 +6062,18 @@ SELECT regexp_match('abc01234xyz', '(?:(.*?)(\d+)(.*)){1,1}');
</row> </row>
<row> <row>
<entry><literal>TZ</literal></entry> <entry><literal>TZ</literal></entry>
<entry>upper case time-zone name</entry> <entry>upper case time-zone abbreviation
(only supported in <function>to_char</>)</entry>
</row> </row>
<row> <row>
<entry><literal>tz</literal></entry> <entry><literal>tz</literal></entry>
<entry>lower case time-zone name</entry> <entry>lower case time-zone abbreviation
(only supported in <function>to_char</>)</entry>
</row> </row>
<row> <row>
<entry><literal>OF</literal></entry> <entry><literal>OF</literal></entry>
<entry>time-zone offset</entry> <entry>time-zone offset from UTC
(only supported in <function>to_char</>)</entry>
</row> </row>
</tbody> </tbody>
</tgroup> </tgroup>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment