Re: timestamp format bug

Поиск
Список
Период
Сортировка
От Kevin Grittner
Тема Re: timestamp format bug
Дата
Msg-id 47A1C2E5.EE98.0025.0@wicourts.gov
обсуждение исходный текст
Ответ на Re: timestamp format bug  ("Roberts, Jon" <Jon.Roberts@asurion.com>)
Список pgsql-hackers
>>> On Thu, Jan 31, 2008 at 12:34 PM, in message
<1A6E6D554222284AB25ABE3229A92762715526@nrtexcus702.int.asurion.com>, "Roberts,
Jon" <Jon.Roberts@asurion.com> wrote:
> If not to_char, what is the preferred method to convert a timestamp to a
> string?
Your original post showed to_char apparently doing what you wanted, no?
> select to_char(date, 'yyyy-mm-dd hh24:mi:ss.ms') as char,
>        date
>   from (select timestamp'2008-01-30 15:06:21.560' as date) sub
>
>
> "2008-01-30 15:06:21.560";"2008-01-30 15:06:21.56"
The to_char function returned the timestamp as a character string with
three decimal positions.
-Kevin




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

Предыдущее
От: "Roberts, Jon"
Дата:
Сообщение: Re: timestamp format bug
Следующее
От: "Roberts, Jon"
Дата:
Сообщение: Re: timestamp format bug