Add items:
authorBruce Momjian <bruce@momjian.us>
Sat, 7 May 2005 04:24:34 +0000 (04:24 +0000)
committerBruce Momjian <bruce@momjian.us>
Sat, 7 May 2005 04:24:34 +0000 (04:24 +0000)
commit7bf1e5682630d6f6506536bfba66dbaff233d9a4
tree68380cff11f71c3ec3129da9cde5f491d49fa35c
parent81dfb66ff510a0442da5ac175f26bb0814ea18a9
Add items:

> * Prevent to_char() on interval from returning meaningless values
>
>   For example, to_char('1 month', 'mon') is meaningless.  Basically,
>   most date-related parameters to to_char() are meaningless for
>   intervals because interval is not anchored to a date.
>
> * Allow to_char() on interval values to accumulate the highest unit
>   requested
>
>  o to_char(INTERVAL '1 hour 5 minutes', 'MI') => 65
>  o to_char(INTERVAL '43 hours 20 minutes', 'MI' ) => 2600
>  o to_char(INTERVAL '43 hours 20 minutes', 'WK:DD:HR:MI') => 0:1:19:20
>  o to_char(INTERVAL '3 years 5 months','MM') => 41
>
>   Some special format flag would be required to request such
>   accumulation.  Such functionality could also be added to EXTRACT.
>   Prevent accumulation that crosses the month/day boundary because of
>   the uneven number of days in a month.
>
doc/TODO
doc/src/FAQ/TODO.html