Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commiteca08f5

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

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)

[8]ページ先頭

©2009-2025 Movatter.jp