Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 098868b

Browse files
committed
Doc: explain that "timestamp - timestamp" applies justify_hours().
Back-patch to v13; before that, there's not really space for this kind of detail. Discussion: https://postgr.es/m/c1696f68-fa8d-7759-6a9c-eb293ab1bbc9@gmx.net
1 parent 0867105 commit 098868b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

doc/src/sgml/func.sgml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8395,11 +8395,12 @@ SELECT regexp_match('abc01234xyz', '(?:(.*?)(\d+)(.*)){1,1}');
83958395
<returnvalue>interval</returnvalue>
83968396
</para>
83978397
<para>
8398-
Subtract timestamps
8398+
Subtract timestamps (converting 24-hour intervals into days,
8399+
similarly to <function>justify_hours()</function>)
83998400
</para>
84008401
<para>
8401-
<literal>timestamp '2001-09-29 03:00' - timestamp '2001-09-27 12:00'</literal>
8402-
<returnvalue>1 day 15:00:00</returnvalue>
8402+
<literal>timestamp '2001-09-29 03:00' - timestamp '2001-07-27 12:00'</literal>
8403+
<returnvalue>63 days 15:00:00</returnvalue>
84038404
</para></entry>
84048405
</row>
84058406

0 commit comments

Comments
 (0)