Re: [BUGS] to_char issue?

2010-02-22 Thread Bruce Momjian
bruce wrote: > Dave Page wrote: > > This was posted as a documentation comment: > > > > to_char(interval '0d 0h 12m 44s', 'DD HH MI SS'); > > with HH and HH12 will return 12 instead of 0. > > > > Testing on 8.4.1, it does seem to be the case that you get "00 12 12 > > 44". Seems bogus to me, but

Re: [BUGS] to_char issue?

2010-02-22 Thread Bruce Momjian
Bruce Momjian wrote: > Dave Page wrote: > > This was posted as a documentation comment: > > > > to_char(interval '0d 0h 12m 44s', 'DD HH MI SS'); > > with HH and HH12 will return 12 instead of 0. > > > > Testing on 8.4.1, it does seem to be the case that you get "00 12 12 > > 44". Seems bogus to

Re: [BUGS] to_char issue?

2010-02-22 Thread Bruce Momjian
Dave Page wrote: > This was posted as a documentation comment: > > to_char(interval '0d 0h 12m 44s', 'DD HH MI SS'); > with HH and HH12 will return 12 instead of 0. > > Testing on 8.4.1, it does seem to be the case that you get "00 12 12 > 44". Seems bogus to me, but am I and the OP missing somet

Re: [BUGS] to_char issue?

2009-09-28 Thread Tom Lane
I wrote: > Hmm ... it would be expected in the case of a timestamp, but seems > wrong when the input is interval. ... although actually the documentation defines HH as "hour of day (01-12)" so it seems that this is per docs; at least, if you wanted to have intervals behave differently from timesta

Re: [BUGS] to_char issue?

2009-09-28 Thread Tom Lane
Dave Page writes: > This was posted as a documentation comment: > to_char(interval '0d 0h 12m 44s', 'DD HH MI SS'); > with HH and HH12 will return 12 instead of 0. > Testing on 8.4.1, it does seem to be the case that you get "00 12 12 > 44". Seems bogus to me, but am I and the OP missing somethin

[BUGS] to_char issue?

2009-09-28 Thread Dave Page
This was posted as a documentation comment: to_char(interval '0d 0h 12m 44s', 'DD HH MI SS'); with HH and HH12 will return 12 instead of 0. Testing on 8.4.1, it does seem to be the case that you get "00 12 12 44". Seems bogus to me, but am I and the OP missing something? -- Dave Page Enterprise