From a54803149a7beeea6dc8e624c3da561b7f6f5fc9 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Tue, 23 Feb 2010 16:14:26 +0000 Subject: Revert recent change of to_char('HH12') handling for intervals; instead improve documentation, and add C comment. --- doc/src/sgml/func.sgml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index 52049e7a738..689cd34e93b 100644 --- a/doc/src/sgml/func.sgml +++ b/doc/src/sgml/func.sgml @@ -1,4 +1,4 @@ - + Functions and Operators @@ -5317,8 +5317,9 @@ SELECT SUBSTRING('XY1234Z', 'Y*?([0-9]{1,3})'); to_char(interval) formats HH and - HH12 as hours in a single day, while HH24 - can output hours exceeding a single day, e.g., >24. + HH12 as shown on a 12-hour clock, i.e. zero hours + and 36 hours output as 12, while HH24 + outputs the full hour value, which can exceed 23 for intervals. -- cgit v1.2.3