Search Postgresql Archives

"interval hour to minute" or "interval day to minute"

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

 



Hi

I discovered the 'fields' option of 'interval', but i can't figure out from the docs how it is supposed to work. Are "hour to minute" and "day to minute" really the same thing? And if not, in what circumstances are they treated differently?

psql (8.4.7)
Type "help" for help.

postgres=> select '3 years 2 months - 1 day + 10 hours 5 minutes'::interval day to minute;
             interval
----------------------------------
 3 years 2 mons -1 days +10:05:00
(1 row)

postgres=> select '3 years 2 months - 1 day + 10 hours 5 minutes'::interval hour to minute;
             interval
----------------------------------
 3 years 2 mons -1 days +10:05:00
(1 row)

Warm regards
Jack Douglas

--
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