aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2016-12-29 18:05:34 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2016-12-29 18:05:48 -0500
commit4191b9ece43d28cbf8b1257d1a97896184fc1fdf (patch)
tree41a0bdc2b25d890f2bad03e2a0e2ecf9ad321541
parent4efe7aa2d8df98dc56d74042b25abf77b4e5bb61 (diff)
downloadpostgresql-4191b9ece43d28cbf8b1257d1a97896184fc1fdf.tar.gz
postgresql-4191b9ece43d28cbf8b1257d1a97896184fc1fdf.zip
Fix incorrect example of to_timestamp() usage.
Must use HH24 not HH to read a hour value exceeding 12. This was already fixed in HEAD in commit d3cd36a13, but I didn't think of backpatching it. Report: https://postgr.es/m/20161229170043.10139.21416@wrigleys.postgresql.org
-rw-r--r--doc/src/sgml/func.sgml2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml
index 98c7e340380..89c75b7bee4 100644
--- a/doc/src/sgml/func.sgml
+++ b/doc/src/sgml/func.sgml
@@ -5988,7 +5988,7 @@ SELECT regexp_matches('abc01234xyz', '(?:(.*?)(\d+)(.*)){1,1}');
<para>
Here is a more
complex example:
- <literal>to_timestamp('15:12:02.020.001230', 'HH:MI:SS.MS.US')</literal>
+ <literal>to_timestamp('15:12:02.020.001230', 'HH24:MI:SS.MS.US')</literal>
is 15 hours, 12 minutes, and 2 seconds + 20 milliseconds +
1230 microseconds = 2.021230 seconds.
</para>