Re: epoch to timestamp

From: Larry Rosenman <ler(at)lerctr(dot)org>
To: Josh Berkus <josh(at)agliodbs(dot)com>, Achilleus Mantzios <achill(at)matrix(dot)gatewaynet(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: epoch to timestamp
Date: 2003-05-12 16:02:13
Message-ID: 114710000.1052755333@lerlaptop.iadfw.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-sql

--On Monday, May 12, 2003 09:00:11 -0700 Josh Berkus <josh(at)agliodbs(dot)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(at)lerctr(dot)org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message scott.marlowe 2003-05-12 16:04:04 Re: Caching Websites
Previous Message Doug McNaught 2003-05-12 16:01:44 Re: Caching Websites

Browse pgsql-sql by date

  From Date Subject
Next Message Chris Linstruth 2003-05-12 17:13:32 Re: epoch to timestamp
Previous Message Josh Berkus 2003-05-12 16:00:11 Re: epoch to timestamp