| От | Kevin Grittner |
|---|---|
| Тема | Re: timestamp format bug |
| Дата | |
| Msg-id | 47A1D476.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: > doesn't round the zeros off for timestamp Sorry to have been so slow, but I think this is the crux of it: A timestamp represents a moment in time, without storing any precision information. These timestamp literals represent exactly the same moment, and therefore have exactly the same internal representation: timestamp '2008-01-31 12:31:40.50' timestamp '2008-01-31 12:31:40.500' timestamp '2008-01-31 12:31:40.500000' to_char turns that into a string of your chosen format. I hope that helps. -Kevin
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера