summaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorBruce Momjian2000-07-01 14:10:32 +0000
committerBruce Momjian2000-07-01 14:10:32 +0000
commit99212a48476448bfd38841730e9d6ed945c2a0d0 (patch)
treee042527dc56895916b6c800a5375aaf9d98e1515 /doc/src
parent2f131ca5880196d54ce0aac734bebe9c8393aa07 (diff)
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 ~ ~
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/sgml/func.sgml13
1 files changed, 8 insertions, 5 deletions
diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml
index 0023a28b0aa..731f24902eb 100644
--- a/doc/src/sgml/func.sgml
+++ b/doc/src/sgml/func.sgml
@@ -785,11 +785,11 @@
</row>
<row>
<entry>W</entry>
- <entry>week of month</entry>
+ <entry>week of month (1-5) where first week start on the first day of the month</entry>
</row>
<row>
<entry>WW</entry>
- <entry>week number of year</entry>
+ <entry>week number of year (1-53) where first week start on the first day of the year</entry>
</row>
<row>
<entry>CC</entry>
@@ -871,9 +871,12 @@
<listitem>
<para>
<function>to_timestamp</function> and <function>to_date</function>
- skip blank space if the <literal>FX</literal> option is
- not used. <literal>FX</literal> must be specified as the first item
- in the template.
+ skip multiple blank space in converted string if the <literal>FX</literal> option
+ is not used. <literal>FX</literal> must be specified as the first item
+ in the template; for example
+ <literal>to_timestamp('2000 JUN','YYYY MON')</literal> is right, but
+ <literal>to_timestamp('2000 JUN','FXYYYY MON')</literal> returns error,
+ because to_timestamp() expects one blank space only.
</para>
</listitem>