When I subtract timestamps, the interval is in form DD:HH:MM:SS. How can I convert it all to minutes without extracting days and hours and multiplication/addition? I'm looking for a single function which I can substitute for date_part
in this query so that it returns 65:
select date_part('minutes', '65 minutes'::interval);
Context: I need to know how many minutes have passed since given timestamp.