File tree 1 file changed +9
-2
lines changed
1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -6605,13 +6605,20 @@ SELECT EXTRACT(CENTURY FROM TIMESTAMP '2001-02-16 20:38:40');
6605
6605
<term><literal>day</literal></term>
6606
6606
<listitem>
6607
6607
<para>
6608
- The day (of the month) field (1 - 31)
6608
+ For <type>timestamp</type> values, the day (of the month) field
6609
+ (1 - 31) ; for <type>interval</type> values, the number of days
6609
6610
</para>
6610
6611
6611
6612
<screen>
6612
6613
SELECT EXTRACT(DAY FROM TIMESTAMP '2001-02-16 20:38:40');
6613
6614
<lineannotation>Result: </lineannotation><computeroutput>16</computeroutput>
6615
+
6616
+ SELECT EXTRACT(DAY FROM INTERVAL '40 days 1 minute');
6617
+ <lineannotation>Result: </lineannotation><computeroutput>40</computeroutput>
6614
6618
</screen>
6619
+
6620
+
6621
+
6615
6622
</listitem>
6616
6623
</varlistentry>
6617
6624
@@ -6827,7 +6834,7 @@ SELECT EXTRACT(MINUTE FROM TIMESTAMP '2001-02-16 20:38:40');
6827
6834
<listitem>
6828
6835
<para>
6829
6836
For <type>timestamp</type> values, the number of the month
6830
- within the year (1 - 12) ; for <type>interval</type> values
6837
+ within the year (1 - 12) ; for <type>interval</type> values,
6831
6838
the number of months, modulo 12 (0 - 11)
6832
6839
</para>
6833
6840
You can’t perform that action at this time.
0 commit comments