Re: to_char_at_timezone()?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Marko Tiikkaja <marko(at)joh(dot)to>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: to_char_at_timezone()?
Date: 2014-11-04 23:59:00
Message-ID: 10154.1415145540@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Marko Tiikkaja <marko(at)joh(dot)to> writes:
> So I got into thinking whether it would make sense to provide a new
> function, say, to_char_at_timezone() to solve this problem. For example:
> ...
> Any thoughts? The patch is quite trivial.

I'm not convinced that it's all that trivial. Is the input timestamp or
timestamptz, and what's the semantics of that exactly (ie what timezone
rotation happens)? One's first instinct is often wrong in this area.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Marko Tiikkaja 2014-11-05 00:04:28 Re: to_char_at_timezone()?
Previous Message Michael Paquier 2014-11-04 23:57:07 Re: tracking commit timestamps