pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Devrim GUNDUZ <devrim@gunduz.org>
To: Pedro B. <pedro.borracha@netcabo.pt>
Cc: pgsql-sql@postgresql.org
Subject: Re: Datetime
Date: Tue, 3 Aug 2004 13:58:26 +0300 (EEST)
Message-ID: <Pine.LNX.4.44.0408031358110.24680-100000@emo.org.tr> (raw)
In-Reply-To: <410F3D4B.60405@netcabo.pt>


Hi,

On Tue, 3 Aug 2004, Pedro B. wrote:

> I'm using a TIMESTAMP column with a now() default which (correctly i 
> assume) uses a 'yyyy-mm-dd hh:mm:ss' format.
> 
> Is it possible to make it something like 'yyyy-mm-dd hh:mm:ss:cc' ? 
> (basically, a DATE and a TIME, but with 2 decimal cases on the :cc and 
> not .ccccc as the TIME format.

Is this what you are asking?

test=> SELECT now()::timestamp(1);
          now
------------------------
 2004-08-03 13:58:48.60
(1 row)


Regards,
-- 
Devrim GUNDUZ	       
devrim~gunduz.org				devrim.gunduz~linux.org.tr 
			http://www.tdmsoft.com
			http://www.gunduz.org




view thread (11+ messages)  latest in thread

Message-ID: <Pine.LNX.4.44.0408031358110.24680-100000@emo.org.tr>
Permalink:  ../Pine.LNX.4.44.0408031358110.24680-100000@emo.org.tr/
Also on:    postgresql.org/message-id/Pine.LNX.4.44.0408031358110.24680-100000@emo.org.tr

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: devrim@gunduz.org, pedro.borracha@netcabo.pt
  Subject: Re: Datetime
  In-Reply-To: <Pine.LNX.4.44.0408031358110.24680-100000@emo.org.tr>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox