File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 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');
66056605 <term><literal>day</literal></term>
66066606 <listitem>
66076607 <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
66096610 </para>
66106611
66116612<screen>
66126613SELECT EXTRACT(DAY FROM TIMESTAMP '2001-02-16 20:38:40');
66136614<lineannotation>Result: </lineannotation><computeroutput>16</computeroutput>
6615+
6616+ SELECT EXTRACT(DAY FROM INTERVAL '40 days 1 minute');
6617+ <lineannotation>Result: </lineannotation><computeroutput>40</computeroutput>
66146618</screen>
6619+
6620+
6621+
66156622 </listitem>
66166623 </varlistentry>
66176624
@@ -6827,7 +6834,7 @@ SELECT EXTRACT(MINUTE FROM TIMESTAMP '2001-02-16 20:38:40');
68276834 <listitem>
68286835 <para>
68296836 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,
68316838 the number of months, modulo 12 (0 - 11)
68326839 </para>
68336840
You can’t perform that action at this time.
0 commit comments