Received: from localhost (unknown [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id D67B99FA0DD for ; Wed, 5 Sep 2007 00:54:45 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 68079-01 for ; Wed, 5 Sep 2007 00:54:42 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.182]) by postgresql.org (Postfix) with ESMTP id 937419FA245 for ; Wed, 5 Sep 2007 00:54:42 -0300 (ADT) Received: by wa-out-1112.google.com with SMTP id m38so2709906waf for ; Tue, 04 Sep 2007 20:54:41 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=kTm5GkwSMvNHr4rHdf7CDP6RwfAdhW/UxAd94uCSoHlxIOVq3n9Nd9do/v/oEjdprukABZZ9Pi9azt/cgbDPtLD/36VvzfWYcHruR+MOQndxuW7cU3iL78Fpo0WoI7ZQFHF0NEiTu81S0wAOl7/YhczJUcThAeFPIHcIsTR3JA0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=WxC7r/8qWy6HnWEEUjXVRWeiDU7jKLnpSMzd/sLCPbD/4ZKAt8kFU/VDs/7ZxP+ZP5nKPppfsGR/SPDbpPbBGb7YzLHs6ffmtyee0TX4kdBI2m6TgaIuNtKTtA4LWOIOvmBSU0Yla+Wzdoo9xTn/TQbwCPhaWfrhOjZp6bq6XGo= Received: by 10.114.124.1 with SMTP id w1mr302248wac.1188964481334; Tue, 04 Sep 2007 20:54:41 -0700 (PDT) Received: by 10.114.81.10 with HTTP; Tue, 4 Sep 2007 20:54:41 -0700 (PDT) Message-ID: Date: Wed, 5 Sep 2007 13:54:41 +1000 From: "Raj A" To: pgsql-general@postgresql.org, pgsql-sql@postgresql.org Subject: Re: work hour calculations In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200709/229 X-Sequence-Number: 120153 correction: > The result I'm expecting for the above to be > > notification_time | finished_time | actual > ------------------------+------------------------+----------------- > 2007-07-06 15:50:00+10 | 2007-07-09 07:10:00+10 | 01:20:00 > 2007-07-07 12:30:00+10 | 2007-07-09 07:20:00+10 | 00:20:00