Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit99212a4

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 andthe am/pm bug is fixed, the to_char() use week-of-year (WW) full compatiblewith Oracle. This patch update relevant regress-tests and docs too. Karel~~
1 parent2f131ca commit99212a4

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)

[8]ページ先頭

©2009-2025 Movatter.jp