git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 81d46ea)
Doc: explain that "timestamp - timestamp" applies justify_hours().
2020年6月26日 17:54:01 +0000 (13:54 -0400)
2020年6月26日 17:54:01 +0000 (13:54 -0400)
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


diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml
index b7c450ea29d287e515128bc0da56343fd60e8a8f..7119f0b2ca580de1bf4758ce6d661b6d8c6ce2f7 100644 (file)
--- a/doc/src/sgml/func.sgml
+++ b/doc/src/sgml/func.sgml
@@ -8412,11 +8412,12 @@ SELECT regexp_match('abc01234xyz', '(?:(.*?)(\d+)(.*)){1,1}');
<returnvalue>interval</returnvalue>
</para>
<para>
- Subtract timestamps
+ Subtract timestamps (converting 24-hour intervals into days,
+ similarly to <function>justify_hours()</function>)
</para>
<para>
- <literal>timestamp '2001年09月29日 03:00' - timestamp '2001-09-27 12:00'</literal>
- <returnvalue>1 day 15:00:00</returnvalue>
+ <literal>timestamp '2001年09月29日 03:00' - timestamp '2001-07-27 12:00'</literal>
+ <returnvalue>63 days 15:00:00</returnvalue>
</para></entry>
</row>
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /