pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Reinoud van Leeuwen <reinoud.v@n.leeuwen.net>
To: pgsql-sql@postgresql.org
Subject: Re: workday function
Date: Tue, 15 May 2007 11:44:38 +0200
Message-ID: <20070515094438.GT72343@spoetnik.xs4all.nl> (raw)
In-Reply-To: <200705150951.34928.gary.stainburn@ringways.co.uk>
References: <200705150951.34928.gary.stainburn@ringways.co.uk>

On Tue, May 15, 2007 at 09:51:34AM +0100, Gary Stainburn wrote:
> Hi folks
> 
> I need to be able to add and subtract workdays, something like
> 
> select CURRENT_DATE - '3 work days'::interval;

Would that take holidays into account? (and wich ones?)

-- 
__________________________________________________
"Nothing is as subjective as reality"
Reinoud van Leeuwen    reinoud.v@n.leeuwen.net
http://www.xs4all.nl/~reinoud
__________________________________________________



view thread (8+ messages)  latest in thread

Message-ID: <20070515094438.GT72343@spoetnik.xs4all.nl>
Permalink:  ../20070515094438.GT72343@spoetnik.xs4all.nl/
Also on:    postgresql.org/message-id/20070515094438.GT72343@spoetnik.xs4all.nl

 · 

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: reinoud.v@n.leeuwen.net
  Subject: Re: workday function
  In-Reply-To: <20070515094438.GT72343@spoetnik.xs4all.nl>

* 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