]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Allow to_char(interval) and to_char(time) to use AM/PM specifications.
authorBruce Momjian <bruce@momjian.us>
Sat, 3 Dec 2005 16:45:23 +0000 (16:45 +0000)
committerBruce Momjian <bruce@momjian.us>
Sat, 3 Dec 2005 16:45:23 +0000 (16:45 +0000)
commitdfdec6044798adfb167c39c12a00c1bbb451a0b0
tree156445a7fe2723cf1822fd18b6525291070cb789
parent4ed2e803ef4580ed590f310574b9d6587aaa7231
Allow to_char(interval) and to_char(time) to use AM/PM specifications.
Map them to a single day, so '30 hours' is 'AM'.

Have to_char(interval) and to_char(time) use "HH", "HH12" as 12-hour
intervals, rather than bypass and print the full interval hours.  This
is neeeded because to_char(time) is mapped to interval in this function.
Intervals should use "HH24", and document suggestion.

Allow "D" format specifiers for interval/time.
doc/src/sgml/func.sgml
src/backend/utils/adt/formatting.c