pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: praveen vejandla <praveen_vejandla@rediffmail.com>
To: pgsql-sql@postgresql.org
Subject: calculating interval
Date: 22 Nov 2002 14:26:09 -0000
Message-ID: <20021122142609.11784.qmail@webmail31.rediffmail.com> (raw)

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



view thread (4+ messages)  latest in thread

Message-ID: <20021122142609.11784.qmail@webmail31.rediffmail.com>
Permalink:  ../20021122142609.11784.qmail@webmail31.rediffmail.com/
Also on:    postgresql.org/message-id/20021122142609.11784.qmail@webmail31.rediffmail.com

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: praveen_vejandla@rediffmail.com
  Subject: Re: calculating interval
  In-Reply-To: <20021122142609.11784.qmail@webmail31.rediffmail.com>

* 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