Search Postgresql Archives

Re: Inconsistent time interval formatting

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 01/13/11 1:08 PM, Ben Chobot wrote:
On Jan 13, 2011, at 11:03 AM, Tom Lane wrote:

If you don't care about that, you can use justify_hours (I think that's
the right function) to smash them to the same thing.
I use justify_hours, and I still get entries like '1 day 35:31:10' intermixed with the entires I'd expect like '2 days 03:12:40'.

test=> select justify_hours(interval '1 day 35:31:10');
  justify_hours
-----------------
 2 days 11:31:10
(1 row)



works here. I believe this is an 8.3.9 system (overdue for upgrades) that I happened to test on.



--
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux