Re: timestamp without time zone format

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: timestamp without time zone format
Дата
Msg-id 40D99572.9060704@archonet.com
обсуждение исходный текст
Ответ на timestamp without time zone format  ("Antony Paul" <antonypaul24@hotmail.com>)
Список 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 по дате отправления:

Предыдущее
От: alltest1
Дата:
Сообщение: simultaneous use of JDBC and libpq
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: User Privileges using dblink