I want to execute a query such as: select abstime(1196474400) - abstime(1167616800); but specify the result in total minutes, total days (rounding off hours, minutes seconds). I'm sure this is easy but I couldn't find it. What is the proper way to do this in PostgreSQL?