Re: [DOCS] Add example about date ISO format

Поиск
Список
Период
Сортировка
Искать
От
Bruce Momjian
Тема
Re: [DOCS] Add example about date ISO format
Дата
Msg-id
ZYs4V6C4lfSzRcsQ@momjian.us
Ответ на
Список
Дерево обсуждения
[DOCS] Add example about date ISO format juha.mustonen@iki.fi
Re: [DOCS] Add example about date ISO format Bruce Momjian <bruce@momjian.us>
Re: [DOCS] Add example about date ISO format Laurenz Albe <laurenz.albe@cybertec.at>
Re: [DOCS] Add example about date ISO format Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: [DOCS] Add example about date ISO format Bruce Momjian <bruce@momjian.us>
Re: [DOCS] Add example about date ISO format "David G. Johnston" <david.g.johnston@gmail.com>
Re: [DOCS] Add example about date ISO format Erik Wienhold <ewie@ewie.name>
Re: [DOCS] Add example about date ISO format Bruce Momjian <bruce@momjian.us>
Re: [DOCS] Add example about date ISO format Laurenz Albe <laurenz.albe@cybertec.at>
Re: [DOCS] Add example about date ISO format Bruce Momjian <bruce@momjian.us>
Re: [DOCS] Add example about date ISO format Laurenz Albe <laurenz.albe@cybertec.at>
Re: [DOCS] Add example about date ISO format Erik Wienhold <ewie@ewie.name>
Re: [DOCS] Add example about date ISO format Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: [DOCS] Add example about date ISO format Erik Wienhold <ewie@ewie.name>
Re: [DOCS] Add example about date ISO format Bruce Momjian <bruce@momjian.us>
Re: [DOCS] Add example about date ISO format Bruce Momjian <bruce@momjian.us>
Re: [DOCS] Add example about date ISO format Erik Wienhold <ewie@ewie.name>
On Thu, Dec  7, 2023 at 02:18:28PM -0500, Bruce Momjian wrote:
> Yes, there were a few problems with my initial patch.  First, I should
> have used "Z" instead of a Z which could be interpreted as a format
> specification;  I had already done that for "T" in the example.
> 
> Second, I was missing the trailing "Z" in the output --- not sure how
> that happened.
> 
> Erik and Alvaro made a great point --- we are using a literal "Z" as the
> time zone output specification, but as Alvaro pointed out, there is no
> way to get the time zone _name_ or even the offset from the AT TIME ZONE
> value, so we must just pass the literal "Z" from the input to the output.
> This proves Alvaro's point on this issue:
> 
> 	SELECT pg_typeof(current_timestamp AT TIME ZONE 'America/Santiago');
> 	          pg_typeof
> 	-----------------------------
> 	 timestamp without time zone
> 
> Updated patch attached.  Thank you for the feedback.

Patch applied to master.  Thanks for all the suggestions.

-- 
  Bruce Momjian          https://momjian.us
  EDB                                      https://enterprisedb.com

  Only you can decide what is important to you.


В списке pgsql-docs по дате отправления
От: Tom Lane
Дата:
От: PG Doc comments form
Дата:
Сообщение: string_agg
FAQ