Skip to content

Commit 5efbc14

Browse files
bmomjianpull[bot]
authored andcommitted
doc: add ISO 8601 extended format example using to_char()
Reported-by: juha.mustonen@iki.fi Discussion: https://postgr.es/m/20170217160154.6101.52806@wrigleys.postgresql.org Co-authored-by: Erik Wienhold Backpatch-through: master
1 parent 1ffc0e3 commit 5efbc14

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

doc/src/sgml/func.sgml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8748,6 +8748,12 @@ SELECT regexp_match('abc01234xyz', '(?:(.*?)(\d+)(.*)){1,1}');
87488748
<entry><literal>to_char(current_timestamp, 'FMDay,&nbsp;FMDD&nbsp;&nbsp;HH12:MI:SS')</literal></entry>
87498749
<entry><literal>'Tuesday,&nbsp;6&nbsp;&nbsp;05:39:18'</literal></entry>
87508750
</row>
8751+
<row>
8752+
<entry><literal>to_char(current_timestamp AT TIME ZONE
8753+
'UTC', 'YYYY-MM-DD"T"HH24:MI:SS"Z"')</literal></entry>
8754+
<entry><literal>'2022-12-06T05:39:18Z'</literal>,
8755+
<acronym>ISO</acronym> 8601 extended format</entry>
8756+
</row>
87518757
<row>
87528758
<entry><literal>to_char(-0.1, '99.99')</literal></entry>
87538759
<entry><literal>'&nbsp;&nbsp;-.10'</literal></entry>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy