Re: Getting 2002-12-18T17:32:40-05:00 (ISO 8601) from to_date()

Поиск
Список
Период
Сортировка
Искать
От
Tom Lane
Тема
Re: Getting 2002-12-18T17:32:40-05:00 (ISO 8601) from to_date()
Дата
Msg-id
19012.1040313051@sss.pgh.pa.us
Ответ на
Список
Дерево обсуждения
Getting 2002-12-18T17:32:40-05:00 (ISO 8601) from to_date() Karl DeBisschop <kdebisschop@alert.infoplease.com>
Re: Getting 2002-12-18T17:32:40-05:00 (ISO 8601) from to_date() Tom Lane <tgl@sss.pgh.pa.us>
"Peter Gibbs"  writes:
> select to_char(now()+'3 days'::interval,'YYYY-MM-DDTHH24:MI:SS');
>         to_char
> -----------------------
>  2002-12-22NDH24:41:58

Oh, duh --- "TH" is a format modifier.  That's what's confusing it
(and today being the 19TH is what's confusing us).

So the suggestion of ... DD"T"HH ... is the way to go.

			regards, tom lane
В списке pgsql-general по дате отправления
От: Peter Gibbs
Дата:
От: Manfred Koizar
Дата:
Сообщение: Re: IN or EXISTS?? faster one
FAQ