Skip to content

Commit efcff3d

Browse files
committed
In the attache is new (correct) version. I add TZ (timezone) support
for to_char() too. Karel
1 parent 61768d8 commit efcff3d

File tree

3 files changed

+604
-490
lines changed

3 files changed

+604
-490
lines changed

doc/src/sgml/func.sgml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -785,11 +785,11 @@
785785
</row>
786786
<row>
787787
<entry>W</entry>
788-
<entry>week of month</entry>
788+
<entry>week of month (1-5) where first week start on the first day of the month</entry>
789789
</row>
790790
<row>
791791
<entry>WW</entry>
792-
<entry>week number of year</entry>
792+
<entry>week number of year (1-53) where first week start on the first day of the year</entry>
793793
</row>
794794
<row>
795795
<entry>CC</entry>
@@ -811,6 +811,14 @@
811811
<entry>rm</entry>
812812
<entry>month in Roman Numerals (I-XII; I=JAN) - lower case</entry>
813813
</row>
814+
<row>
815+
<entry>TZ</entry>
816+
<entry>timezone string - upper case (not supported in the to_timestamp())</entry>
817+
</row>
818+
<row>
819+
<entry>tz</entry>
820+
<entry>timezone string - lower case (not supported in the to_timestamp())</entry>
821+
</row>
814822
</tbody>
815823
</tgroup>
816824
</table>
@@ -871,9 +879,12 @@
871879
<listitem>
872880
<para>
873881
<function>to_timestamp</function> and <function>to_date</function>
874-
skip blank space if the <literal>FX</literal> option is
875-
not used. <literal>FX</literal> must be specified as the first item
876-
in the template.
882+
skip multiple blank space in converted string if the <literal>FX</literal> option
883+
is not used. <literal>FX</literal> must be specified as the first item
884+
in the template; for example
885+
<literal>to_timestamp('2000 JUN','YYYY MON')</literal> is right, but
886+
<literal>to_timestamp('2000 JUN','FXYYYY MON')</literal> returns error,
887+
because to_timestamp() expects one blank space only.
877888
</para>
878889
</listitem>
879890

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