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

Commit eca08f5

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 81d46ea commit eca08f5

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
@@ -8412,11 +8412,12 @@ SELECT regexp_match('abc01234xyz', '(?:(.*?)(\d+)(.*)){1,1}');
84128412
<returnvalue>interval</returnvalue>
84138413
</para>
84148414
<para>
8415-
Subtract timestamps
8415+
Subtract timestamps (converting 24-hour intervals into days,
8416+
similarly to <function>justify_hours()</function>)
84168417
</para>
84178418
<para>
8418-
<literal>timestamp '2001-09-29 03:00' - timestamp '2001-09-27 12:00'</literal>
8419-
<returnvalue>1 day 15:00:00</returnvalue>
8419+
<literal>timestamp '2001-09-29 03:00' - timestamp '2001-07-27 12:00'</literal>
8420+
<returnvalue>63 days 15:00:00</returnvalue>
84208421
</para></entry>
84218422
</row>
84228423

0 commit comments

Comments
 (0)