Getting timestamp without milliseconds

Поиск
Список
Период
Сортировка
От Tadej Kanizar
Тема Getting timestamp without milliseconds
Дата
Msg-id 203220676CB@sagit-server.com
обсуждение исходный текст
Ответы Re: Getting timestamp without milliseconds  (John Sidney-Woollett <johnsw@wardbrook.com>)
Re: Getting timestamp without milliseconds  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Getting timestamp without milliseconds  (Scott Marlowe <smarlowe@g2switchworks.com>)
Список pgsql-general

Hi!

 

I’ve got a timestamp field.. and it returns sth like “2006-01-04 21:33:17.156”. How can I get the same result, just without the .156? I’ve looked at date/time formatting functions, etc, but couldn’t find a straight way to do this L

Thanks.

 

Regards,

Tadej

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

Предыдущее
От: Steve Crawford
Дата:
Сообщение: Re: Monitoring PostgreSQL connections using cricket and
Следующее
От: John Sidney-Woollett
Дата:
Сообщение: Re: Getting timestamp without milliseconds