From: A.M. <agentm@cmu.edu>
To: pgsql-sql@postgresql.org
Subject: timestamp output as seconds since epoch?
Date: Wed, 26 Feb 2003 20:14:44 -0500
Message-ID: <DB35FD78-49F0-11D7-A1A6-0030657192DA@cmu.edu> (raw)
I need to grab the pgsql timestamp as an integer (seconds since epoch)
in order to compare the dates programmatically later on. What I'd like
is:
SELECT CAST('12/12/2004 4:50:45.3' AS TIMESTAMP)::INT8;
The docs talk alot about date input but only discuss the 4 SET
regionalized date output methods. Thanks!
><><><><><><><><><
AgentM
agentm@cmu.edu
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: agentm@cmu.edu
Subject: Re: timestamp output as seconds since epoch?
In-Reply-To: <DB35FD78-49F0-11D7-A1A6-0030657192DA@cmu.edu>
* 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