mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-21 08:29:39 +08:00
Add date_trunc('', interval) documentation mention
Report from Eric Howe
This commit is contained in:
parent
6668ad1d70
commit
90afc7d805
@ -6567,6 +6567,20 @@ SELECT SUBSTRING('XY1234Z', 'Y*?([0-9]{1,3})');
|
|||||||
<entry><literal>2001-02-16 20:00:00</literal></entry>
|
<entry><literal>2001-02-16 20:00:00</literal></entry>
|
||||||
</row>
|
</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>
|
<row>
|
||||||
<entry>
|
<entry>
|
||||||
<indexterm>
|
<indexterm>
|
||||||
|
Loading…
Reference in New Issue
Block a user