Skip to content

Commit 74f4881

Browse files
committed
Document why you can't use date_trunc("week") on intervals.
1 parent 1d9a6ae commit 74f4881

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

doc/src/sgml/func.sgml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7050,6 +7050,11 @@ date_trunc('<replaceable>field</replaceable>', <replaceable>source</replaceable>
70507050
</simplelist>
70517051
</para>
70527052

7053+
<para>
7054+
<literal>week</literal> is not supported for <type>interval</>
7055+
values because months usually have fractional weeks.
7056+
</para>
7057+
70537058
<para>
70547059
Examples:
70557060
<screen>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy