From: Tom Lane <tgl@sss.pgh.pa.us>
To: Ryan Bradetich <ryan_bradetich@hp.com>
Cc: pgsql-sql@postgreSQL.org
Subject: Re: Datetime as a time_t?
Date: Thu, 06 Apr 2000 16:54:06 -0400
Message-ID: <28756.955054446@sss.pgh.pa.us> (raw)
In-Reply-To: <38ECBAD4.E13DD27B@hp.com>
References: <38ECBAD4.E13DD27B@hp.com>
Ryan Bradetich <ryan_bradetich@hp.com> writes:
> Does anyone know how to extract a datetime field as a time_t?
date_part('epoch', ...);
Not exactly the first thing you'd think to try, but it works.
regards, tom lane
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, ryan_bradetich@hp.com
Subject: Re: Datetime as a time_t?
In-Reply-To: <28756.955054446@sss.pgh.pa.us>
References: <38ECBAD4.E13DD27B@hp.com> <28756.955054446@sss.pgh.pa.us>
* 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