From: Pham, Thinh <tpham@mail.priority.net>
To: 'pgsql-sql@postgresql.org' <pgsql-sql@postgresql.org>
Subject: datetime function
Date: Tue, 1 Jun 1999 15:25:48 -0500
Message-ID: <551413BBBB03D111BF880060B01AACCE0B38F2@home.priority.net> (raw)
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: tpham@mail.priority.net
Subject: Re: datetime function
In-Reply-To: <551413BBBB03D111BF880060B01AACCE0B38F2@home.priority.net>
References: <551413BBBB03D111BF880060B01AACCE0B38F2@home.priority.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox