1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-30 11:03:19 +03:00

Add timezone offset output option to to_char()

Add ability for to_char() to output the timezone's UTC offset (OF).  We
already have the ability to return the timezone abbeviation (TZ/tz).
Per request from Andrew Dunstan
This commit is contained in:
Bruce Momjian
2013-07-01 13:40:18 -04:00
parent 6697aa2bc2
commit 7408c5d29b
2 changed files with 19 additions and 2 deletions

View File

@ -5645,6 +5645,10 @@ SELECT SUBSTRING('XY1234Z', 'Y*?([0-9]{1,3})');
<entry><literal>tz</literal></entry>
<entry>lower case time-zone name</entry>
</row>
<row>
<entry><literal>OF</literal></entry>
<entry>time-zone offset</entry>
</row>
</tbody>
</tgroup>
</table>