Add date_trunc('', interval) documentation mention

Report from Eric Howe
This commit is contained in:
Bruce Momjian 2014-01-22 22:26:45 -05:00
parent 6668ad1d70
commit 90afc7d805

View File

@ -6567,6 +6567,20 @@ SELECT SUBSTRING('XY1234Z', 'Y*?([0-9]{1,3})');
<entry><literal>2001-02-16 20:00:00</literal></entry>
</row>
<row>
<entry>
<indexterm>
<primary>date_trunc</primary>
</indexterm>
<literal><function>date_trunc(<type>text</type>, <type>interval</type>)</function></literal>
</entry>
<entry><type>interval</type></entry>
<entry>Truncate to specified precision; see also <xref linkend="functions-datetime-trunc">
</entry>
<entry><literal>date_trunc('hour', interval '2 days 3 hours 40 minutes')</literal></entry>
<entry><literal>2 days 03:00:00</literal></entry>
</row>
<row>
<entry>
<indexterm>