datetime function

Поиск
Список
Период
Сортировка
От Pham, Thinh
Тема datetime function
Дата
Msg-id 551413BBBB03D111BF880060B01AACCE0B38F2@home.priority.net
обсуждение исходный текст
Список 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


В списке pgsql-sql по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: [ADMIN] Re: [SQL] Data recovery
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [SQL] Column name's length