Re: timestamp without time zone format - Mailing list pgsql-general

From Richard Huxton
Subject Re: timestamp without time zone format
Date
Msg-id 40D99572.9060704@archonet.com
Whole thread Raw
In response to timestamp without time zone format  ("Antony Paul" <antonypaul24@hotmail.com>)
List pgsql-general
Antony Paul wrote:
> Hi all
>     What is the last value in a column of data type timestamp without time
> zone. A sample data is  2004-06-22 18:07:00.486027.  What does 486027 mean
> Milliseconds or seconds since midnight or something else ?

It's fractional seconds, but your clock is unlikely to be that accurate
in reality. You can suppress the fraction by declaring a column of type
timestamp(0), or have two decimal places with timestamp(2) etc.

Same for timestamp with time zone.


--
   Richard Huxton
   Archonet Ltd

pgsql-general by date:

Previous
From: alltest1
Date:
Subject: simultaneous use of JDBC and libpq
Next
From: Alvaro Herrera
Date:
Subject: Re: User Privileges using dblink