calculating interval

Поиск
Список
Период
Сортировка
От praveen vejandla
Тема calculating interval
Дата
Msg-id 20021122142609.11784.qmail@webmail31.rediffmail.com
обсуждение исходный текст
Ответы Re: calculating interval  (Dan Langille <dan@langille.org>)
Список pgsql-sql
Dear All,

Is there any way in postgresql to calculate the interval between 
two times excluding specific days,specific duration.

Ex:
timestamp1 : 2002-10-01 10:30AM
timestamp2 : 2002-15-01 04:50PM

suppose if i need the difference between timestamp1,timestamp2 but 
i don't want to count how many sun days are coming, i want to 
ignore all sundays in between,i want to ignore certain timings(say 
10.00 AM to 5:00PM)s also,then how can I get the duration in this 
way.

Thanks and Regards,
Praveen


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

Предыдущее
От: Dan Langille
Дата:
Сообщение: Re: connectby questions
Следующее
От: Dan Langille
Дата:
Сообщение: Re: calculating interval