Search Postgresql Archives
how to get number of minutes?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
If I subtract 2 timestamps, how do I get the results returned as the total number of minutes.
example
now() - (now()-'2 hours'::interval) = 2:00:00 -- I need the result returned as 120 minutes.
Thanks,
Chris
[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]