Eliminating seconds fractions from timestamps?

Поиск
Список
Период
Сортировка
Искать

Eliminating seconds fractions from timestamps?

От:
CSN <cool_screen_name90001@yahoo.com>
Дата:
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?

Thanks
csn

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: Eliminating seconds fractions from timestamps?

От:
David Fetter <david@fetter.org>
Дата:
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@fetter.org http://fetter.org/
phone: +1 415 235 3778

Remember to vote!
FAQ