Skip to content

Commit 99212a4

Browse files
committed
In the attache is new to_date()/to_timestamp() version.
Now the to_timestamp() support WW,W,J,SSSS,DDD conversion from strings and the am/pm bug is fixed, the to_char() use week-of-year (WW) full compatible with Oracle. This patch update relevant regress-tests and docs too. Karel ~ ~
1 parent 2f131ca commit 99212a4

File tree

3 files changed

+462
-407
lines changed

3 files changed

+462
-407
lines changed

doc/src/sgml/func.sgml

Lines changed: 8 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>
@@ -871,9 +871,12 @@
871871
<listitem>
872872
<para>
873873
<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.
874+
skip multiple blank space in converted string if the <literal>FX</literal> option
875+
is not used. <literal>FX</literal> must be specified as the first item
876+
in the template; for example
877+
<literal>to_timestamp('2000 JUN','YYYY MON')</literal> is right, but
878+
<literal>to_timestamp('2000 JUN','FXYYYY MON')</literal> returns error,
879+
because to_timestamp() expects one blank space only.
877880
</para>
878881
</listitem>
879882

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