On 1/13/23 15:32, Ken Tanzer wrote:
On Fri, Jan 13, 2023 at 3:03 PM Adrian Klaver <[email protected]
Cheers,
Ken
(*) These are probably bad suggestions, but something like...
EXTRACT ( (RAWHOURS|RAWDAYS|RAWMICROSECONDS) ... ?
Or a function RAWEXTRACT( HOURS|DAYS|MICROSECONDS ) ?
Close as I can get:
WITH inters AS (
SELECT
extract(epoch from '1 day 2 hours'::interval) AS i1,
extract(epoch from '26 hours'::interval) AS i2
)
SELECT
i1,
i2,
i1=i2 AS "Equal?"
FROM inters;
i1 | i2 | Equal?
--------------+--------------+--------
93600.000000 | 93600.000000 | t
--
Adrian Klaver
[email protected] <mailto:[email protected]>
--
AGENCY Software
A Free Software data system
By and for non-profits
/http://agency-software.org/ <http://agency-software.org/>/
/https://demo.agency-software.org/client
<https://demo.agency-software.org/client>/
[email protected] <mailto:[email protected]>
(253) 245-3801
Subscribe to the mailing list
<mailto:[email protected]?body=subscribe> to
learn more about AGENCY or
follow the discussion.
--
Adrian Klaver
[email protected]