Re: epoch to timestamp - Mailing list pgsql-sql

From Larry Rosenman
Subject Re: epoch to timestamp
Date
Msg-id 114710000.1052755333@lerlaptop.iadfw.net
Whole thread Raw
In response to Re: epoch to timestamp  (Josh Berkus <josh@agliodbs.com>)
Responses Re: epoch to timestamp  (Chris Linstruth <cjl@QNET.COM>)
List pgsql-sql

--On Monday, May 12, 2003 09:00:11 -0700 Josh Berkus <josh@agliodbs.com> 
wrote:

> Larry,
>
>> I actually have just seconds (from my LD carrier), and want to store it
>> in hours/minutes/seconds.
>
> If you store it as an interval, you will end up with:
>
> staffos=# select '12742329 seconds'::INTERVAL;
>      interval
> -------------------
>  147 days 11:32:09
>
> In fact, you can't avoid interval conversion to days, hours, minutes.
Yeah, I remembered that after I hit send (so, what else is new?  /me 
looking like
a dummy :-) )



-- 
Larry Rosenman                     http://www.lerctr.org/~ler
Phone: +1 972-414-9812                 E-Mail: ler@lerctr.org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749



pgsql-sql by date:

Previous
From: Josh Berkus
Date:
Subject: Re: epoch to timestamp
Next
From: Chris Linstruth
Date:
Subject: Re: epoch to timestamp