Re: Eliminating seconds fractions from timestamps?

From: David Fetter <david(at)fetter(dot)org>
To: CSN <cool_screen_name90001(at)yahoo(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Eliminating seconds fractions from timestamps?
Date: 2006-02-14 22:45:07
Message-ID: 20060214224507.GA9066@fetter.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Feb 14, 2006 at 02:43:05PM -0800, CSN wrote:
> I have a bunch of timestamps like:
>
> 2005-11-20 20:45:48.281653-07
>
> How can I change it so they never get saved with
> seconds fractions?

You could set the fields to be of type TIMESTAMP(0) WITH TIME ZONE.

Cheers,
D
--
David Fetter david(at)fetter(dot)org http://fetter.org/
phone: +1 415 235 3778

Remember to vote!

In response to

Browse pgsql-general by date

  From Date Subject
Next Message andrew 2006-02-14 22:47:49 stateful UDF?
Previous Message CSN 2006-02-14 22:43:05 Eliminating seconds fractions from timestamps?