Re: date_trunc() in a specific time zone

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: date_trunc() in a specific time zone
Дата
Msg-id 27418.1540827392@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: date_trunc() in a specific time zone  (Andreas Karlsson <andreas@proxel.se>)
Ответы Re: date_trunc() in a specific time zone
Re: date_trunc() in a specific time zone
Список pgsql-hackers
Andreas Karlsson <andreas@proxel.se> writes:
> Hm, I am not sure if I see any major win from writing
> date_trunc('day', timestamptz '2001-02-16 20:38:40+00', 'Australia/Sydney')
> instead of
> date_trunc('day', timestamptz '2001-02-16 20:38:40+00' AT TIME ZONE 
> 'Australia/Sydney')

The latter would give you timestamp without time zone, whereas I think
what Vik wants is timestamp with time zone.  Yeah, you could then convert
it back with a second application of AT TIME ZONE 'Australia/Sydney',
but that's both inefficient and mighty confusing.

            regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Chapman Flack
Дата:
Сообщение: Re: PostgreSQL vs SQL/XML Standards
Следующее
От: Vik Fearing
Дата:
Сообщение: Re: date_trunc() in a specific time zone