datetime function

From: "Pham, Thinh" <tpham(at)mail(dot)priority(dot)net>
To: "'pgsql-sql(at)postgresql(dot)org'" <pgsql-sql(at)postgresql(dot)org>
Subject: datetime function
Date: 1999-06-01 20:25:48
Message-ID: 551413BBBB03D111BF880060B01AACCE0B38F2@home.priority.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Is there any sql92 functions (not really essential) that calculates the
timespan between 2 separate points in time? For example, i want to calculate
the total minutes between 2:30pm and 3:30pm. There's a function like this in
microsoft sql but i can't find it in postgres. Below is how it works in ms:

DATEDIFF(minute, '14:30', '15:30')

I looked at the "timespan" function but it's not the same one that i need.
Thanks,
Thinh

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 1999-06-01 21:31:56 Re: [SQL] Column name's length
Previous Message Bruce Momjian 1999-06-01 19:17:49 Re: [ADMIN] Re: [SQL] Data recovery