Format string for ISO-8601 date and time

Поиск
Список
Период
Сортировка
От Daniel Verite
Тема Format string for ISO-8601 date and time
Дата
Msg-id 4f4838cf-149d-44a5-bedd-f2b3ab18feac@mm
обсуждение исходный текст
Ответы Re: Format string for ISO-8601 date and time  (Pavel Stehule <pavel.stehule@gmail.com>)
Re: Format string for ISO-8601 date and time  (Sam Mason <sam@samason.me.uk>)
Список pgsql-general
 Hi,

Is there a format string for to_char(timestamptz, text) that would
output a timestamp in full ISO-8601 format? That is, something like
1977-04-22T01:00:00-05:00

I can't find a way to extract the offset against GMT from the docs
here:
http://www.postgresql.org/docs/8.3/static/functions-formatting.html

If not, what would be the way to convert a timestamp to such a string
regardless of the session's datestyle settings?

Thanks,

--
Daniel

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

Предыдущее
От: Alban Hertroys
Дата:
Сообщение: Re: funny view/temp table problem with query
Следующее
От: Grzegorz Jaśkiewicz
Дата:
Сообщение: Re: funny view/temp table problem with query