Re: Getting timestamp without milliseconds - Mailing list pgsql-general

From Tom Lane
Subject Re: Getting timestamp without milliseconds
Date
Msg-id 18243.1136477808@sss.pgh.pa.us
Whole thread Raw
In response to Getting timestamp without milliseconds  ("Tadej Kanizar" <Tadej.Kanizar@sagit-server.com>)
List pgsql-general
"Tadej Kanizar" <Tadej.Kanizar@sagit-server.com> writes:
> 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?

Cast to timestamp(0).

            regards, tom lane

pgsql-general by date:

Previous
From: John Sidney-Woollett
Date:
Subject: Re: Getting timestamp without milliseconds
Next
From: Scott Marlowe
Date:
Subject: Re: Getting timestamp without milliseconds