1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-11 20:28:21 +03:00

Mention support for date_part('week',timestamp).

Fix spelling of "millennium".
 Thanks to Mika Nystrom <mika@camembert.cs.caltech.edu>.
This commit is contained in:
Thomas G. Lockhart
2000-04-14 15:08:56 +00:00
parent 7fe8f077d3
commit b27cef2932
2 changed files with 16 additions and 9 deletions

View File

@ -1,5 +1,5 @@
<!-- <!--
$Header: /cvsroot/pgsql/doc/src/sgml/datatype.sgml,v 1.28 2000/04/13 21:44:25 momjian Exp $ $Header: /cvsroot/pgsql/doc/src/sgml/datatype.sgml,v 1.29 2000/04/14 15:08:56 thomas Exp $
--> -->
<chapter id="datatype"> <chapter id="datatype">
@ -1022,7 +1022,7 @@ January 8 04:05:06 1999 PST
<literal>Unit</literal> is <literal>second</literal>, <literal>Unit</literal> is <literal>second</literal>,
<literal>minute</literal>, <literal>hour</literal>, <literal>day</literal>, <literal>minute</literal>, <literal>hour</literal>, <literal>day</literal>,
<literal>week</literal>, <literal>month</literal>, <literal>year</literal>, <literal>week</literal>, <literal>month</literal>, <literal>year</literal>,
<literal>decade</literal>, <literal>century</literal>, <literal>millenium</literal>, <literal>decade</literal>, <literal>century</literal>, <literal>millennium</literal>,
or abbreviations or plurals of these units; or abbreviations or plurals of these units;
<literal>Direction</literal> can be <literal>ago</literal> or <literal>Direction</literal> can be <literal>ago</literal> or
empty. empty.

View File

@ -551,13 +551,19 @@
For the For the
<function>date_part</function> and <function>date_trunc</function> <function>date_part</function> and <function>date_trunc</function>
functions, arguments can be functions, arguments can be
`year', `month', `day', `hour', `minute', and `second', `<literal>year</literal>', `<literal>month</literal>',
`<literal>day</literal>', `<literal>hour</literal>',
`<literal>minute</literal>', and `<literal>second</literal>',
as well as the more specialized quantities as well as the more specialized quantities
`decade', `century', `millenium', `millisecond', and `microsecond'. `<literal>decade</literal>', `<literal>century</literal>',
<function>date_part</function> allows `dow' `<literal>millennium</literal>', `<literal>millisecond</literal>',
to return day of week and `epoch' to return seconds since 1970 and `<literal>microsecond</literal>'.
(for <type>timestamp</type>) <function>date_part</function> allows `<literal>dow</literal>'
or 'epoch' to return total elapsed seconds (for <type>interval</type>). to return day of week, '<literal>week</literal>' to return the
ISO-defined week of year, and `<literal>epoch</literal>' to return
seconds since 1970 (for <type>timestamp</type>)
or '<literal>epoch</literal>' to return total elapsed seconds
(for <type>interval</type>).
</para> </para>
</sect1> </sect1>
@ -814,7 +820,8 @@
<para> <para>
All templates allow the use of prefix and suffix modifiers. Modifiers are All templates allow the use of prefix and suffix modifiers. Modifiers are
always valid for use in templates. The prefix 'FX' is a global modifier only. always valid for use in templates. The prefix
'<literal>FX</literal>' is a global modifier only.
</para> </para>
<para> <para>