Re: timestamp without time zone format

From: Richard Huxton <dev(at)archonet(dot)com>
To: Antony Paul <antonypaul24(at)hotmail(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: timestamp without time zone format
Date: 2004-06-23 14:36:34
Message-ID: 40D99572.9060704@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Alvaro Herrera 2004-06-23 14:45:11 Re: User Privileges using dblink
Previous Message Jean-Michel POURE 2004-06-23 14:29:42 Re: [GENERAL] Building pgadmin on Fedora core 2