From: Josh Berkus <josh@agliodbs.com>
To: Larry Rosenman <ler@lerctr.org>
To: Achilleus Mantzios <achill@matrix.gatewaynet.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: epoch to timestamp
Date: Mon, 12 May 2003 09:00:11 -0700
Message-ID: <200305120900.11409.josh@agliodbs.com> (raw)
In-Reply-To: <93440000.1052753700@lerlaptop.iadfw.net>
References: <Pine.LNX.4.44.0305121839190.18329-100000@matrix.gatewaynet.com>
<93440000.1052753700@lerlaptop.iadfw.net>
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.
--
Josh Berkus
Aglio Database Solutions
San Francisco
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: josh@agliodbs.com, ler@lerctr.org, achill@matrix.gatewaynet.com
Subject: Re: epoch to timestamp
In-Reply-To: <200305120900.11409.josh@agliodbs.com>
* 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