Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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

+5
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)