Re: date_trunc() in a specific time zone - Mailing list pgsql-hackers

From Paul A Jungwirth
Subject Re: date_trunc() in a specific time zone
Date
Msg-id CA+renyXrccGTKhvQ4hgPdtsWOb14JnE_ZFEPE74_qywUfgtXwQ@mail.gmail.com
Whole thread Raw
In response to Re: date_trunc() in a specific time zone  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: date_trunc() in a specific time zone  (Paul A Jungwirth <pj@illuminatedcomputing.com>)
List pgsql-hackers
On Mon, Oct 29, 2018 at 9:53 AM Tom Lane <tgl@sss.pgh.pa.us> wrote:
> We already have date_trunc() for timestamp-without-tz, so I'm a little
> confused as to what you think is/would be missing.

This patch adds a 3-arg version for date_trunc(text, timestamptz,
text). I'm saying it would be nice to also have a 3-arg version for
date_trunc(text, timestamp, text). It would do the same thing, except
take a timestamp w/o tz and return a timestamp w/o tz.

Paul


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: date_trunc() in a specific time zone
Next
From: Paul A Jungwirth
Date:
Subject: Re: date_trunc() in a specific time zone