From: Scott Marlowe <scott.marlowe@gmail.com>
To: Tena Sakai <tsakai@gallo.ucsf.edu>
Cc: pgsql-admin@postgresql.org
Subject: Re: any way to convert date via libpq?
Date: Wed, 11 Mar 2009 00:15:14 -0600
Message-ID: <dcc563d10903102315p75de132bp531ba0ba62205189@mail.gmail.com> (raw)
In-Reply-To: <FE44E0D7EAD2ED4BB2165071DB8E328C0378F7D5@egcrc-ex01.egcrc.org>
References: <FE44E0D7EAD2ED4BB2165071DB8E328C0378F7CE@egcrc-ex01.egcrc.org>
<dcc563d10903102155y3ef3fcb3ydf7010aad0346c0b@mail.gmail.com>
<FE44E0D7EAD2ED4BB2165071DB8E328C0378F7D5@egcrc-ex01.egcrc.org>
On Wed, Mar 11, 2009 at 12:07 AM, Tena Sakai <tsakai@gallo.ucsf.edu> wrote:
> Hi Scott,
>
> Many thanks for your reply.
> I just tried:
> select extract (epoch from timestamp with time zone '2008-04-04
> 20:00:0.0');
> and got:
> 1207364400
> which is great!
>
> I suppose there is no problem running this query
> via PGexec() in a C program? Something like:
> result = PGexec (conn, "FETCH ALL from somePort");
It's definitely accessable by anything connecting to the db. Not sure
how that's done in C so someone else will have to chip in on that.
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-admin@postgresql.org
Cc: scott.marlowe@gmail.com, tsakai@gallo.ucsf.edu
Subject: Re: any way to convert date via libpq?
In-Reply-To: <dcc563d10903102315p75de132bp531ba0ba62205189@mail.gmail.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