removing precision from timestamp (microseconds) ..

From: "Marc G(dot) Fournier" <scrappy(at)hub(dot)org>
To: pgsql-sql(at)postgresql(dot)org
Subject: removing precision from timestamp (microseconds) ..
Date: 2003-10-13 14:04:33
Message-ID: 20031013110217.R28590@ganymede.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql


From the docs, if you do:

traffic=# select CURRENT_TIMESTAMP(0);
timestamptz
------------------------
2003-10-13 11:04:09-03
(1 row)

the 0 reduces the precision of the time to get rid of the microseconds ...
is there a way of having this done by default on, if anything, a per
connection basis? For instance, I want to be get rid of the microseconds
from:

traffic=# select now();
now
-------------------------------
2003-10-13 11:02:20.837124-03
(1 row)

Browse pgsql-sql by date

  From Date Subject
Next Message johnnnnnn 2003-10-13 16:19:59 Re: sql performance and cache
Previous Message Alvar Freude 2003-10-13 12:37:38 Re: [postgres] Antwort von Microsoft auf Mail hier!