From: Tom Lane <tgl@sss.pgh.pa.us>
To: Joe Conway <mail@joeconway.com>
Cc: David Gauthier <davegauthierpg@gmail.com>
Cc: Postgres General <pgsql-general@postgresql.org>
Subject: Re: Need to omit time during weekends from age calculations
Date: Mon, 07 Jun 2021 15:39:15 -0400
Message-ID: <983171.1623094755@sss.pgh.pa.us> (raw)
In-Reply-To: <ebce6ea1-c872-78a8-34c5-7d74875c2d5e@joeconway.com>
References: <CAMBRECBCO3toxcCXRNxZqxqyYyNKdu7icy6x_B0Ln7vdD6uyQw@mail.gmail.com>
<ebce6ea1-c872-78a8-34c5-7d74875c2d5e@joeconway.com>
Joe Conway <mail@joeconway.com> writes:
> On 6/7/21 3:12 PM, David Gauthier wrote:
>> I'd like to get the "age" difference between two times which span either
>> all or part of a weekend but exclude any time that transpired during the
>> weekend.
I'm a bit suspicious of this problem statement. I doubt there are many
practical applications where you wouldn't also wish to exclude holidays,
for somebody's definition of holidays. Of course, that makes it a lot
messier since you need a source of data for that.
regards, tom lane
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, mail@joeconway.com, davegauthierpg@gmail.com
Subject: Re: Need to omit time during weekends from age calculations
In-Reply-To: <983171.1623094755@sss.pgh.pa.us>
References: <CAMBRECBCO3toxcCXRNxZqxqyYyNKdu7icy6x_B0Ln7vdD6uyQw@mail.gmail.com> <ebce6ea1-c872-78a8-34c5-7d74875c2d5e@joeconway.com> <983171.1623094755@sss.pgh.pa.us>
* 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