Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit b27cef2

Browse files
author
Thomas G. Lockhart
committed
Mention support for date_part('week',timestamp).
Fix spelling of "millennium". Thanks to Mika Nystrom <mika@camembert.cs.caltech.edu>.
1 parent 7fe8f07 commit b27cef2

File tree

2 files changed

+16
-9
lines changed

2 files changed

+16
-9
lines changed

doc/src/sgml/datatype.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/datatype.sgml,v 1.28 2000/04/13 21:44:25 momjian Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/datatype.sgml,v 1.29 2000/04/14 15:08:56 thomas Exp $
33
-->
44

55
<chapter id="datatype">
@@ -1022,7 +1022,7 @@ January 8 04:05:06 1999 PST
10221022
<literal>Unit</literal> is <literal>second</literal>,
10231023
<literal>minute</literal>, <literal>hour</literal>, <literal>day</literal>,
10241024
<literal>week</literal>, <literal>month</literal>, <literal>year</literal>,
1025-
<literal>decade</literal>, <literal>century</literal>, <literal>millenium</literal>,
1025+
<literal>decade</literal>, <literal>century</literal>, <literal>millennium</literal>,
10261026
or abbreviations or plurals of these units;
10271027
<literal>Direction</literal> can be <literal>ago</literal> or
10281028
empty.

doc/src/sgml/func.sgml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -551,13 +551,19 @@
551551
For the
552552
<function>date_part</function> and <function>date_trunc</function>
553553
functions, arguments can be
554-
`year', `month', `day', `hour', `minute', and `second',
554+
`<literal>year</literal>', `<literal>month</literal>',
555+
`<literal>day</literal>', `<literal>hour</literal>',
556+
`<literal>minute</literal>', and `<literal>second</literal>',
555557
as well as the more specialized quantities
556-
`decade', `century', `millenium', `millisecond', and `microsecond'.
557-
<function>date_part</function> allows `dow'
558-
to return day of week and `epoch' to return seconds since 1970
559-
(for <type>timestamp</type>)
560-
or 'epoch' to return total elapsed seconds (for <type>interval</type>).
558+
`<literal>decade</literal>', `<literal>century</literal>',
559+
`<literal>millennium</literal>', `<literal>millisecond</literal>',
560+
and `<literal>microsecond</literal>'.
561+
<function>date_part</function> allows `<literal>dow</literal>'
562+
to return day of week, '<literal>week</literal>' to return the
563+
ISO-defined week of year, and `<literal>epoch</literal>' to return
564+
seconds since 1970 (for <type>timestamp</type>)
565+
or '<literal>epoch</literal>' to return total elapsed seconds
566+
(for <type>interval</type>).
561567
</para>
562568
</sect1>
563569

@@ -814,7 +820,8 @@
814820

815821
<para>
816822
All templates allow the use of prefix and suffix modifiers. Modifiers are
817-
always valid for use in templates. The prefix 'FX' is a global modifier only.
823+
always valid for use in templates. The prefix
824+
'<literal>FX</literal>' is a global modifier only.
818825
</para>
819826

820827
<para>

0 commit comments

Comments
 (0)