Timestamp - Mailing list pgsql-general

From Igor Roboul
Subject Timestamp
Date
Msg-id 20001027134511.A25235@linux.rainbow
Whole thread Raw
List pgsql-general
Hello,
How to get value of 'timestamp' type field into C program?
For example for varchar(x) I use v = PQgetvalue(r,0,0) and now
v is pointer to nullterminated string.
For integer: i = PQgetvalue(r,0,1) and now i contains value
of integer field.
But with timestamp? How to translate returned value into time_t?

I could not find this in documentation (in aw_pgsql_book and in manual
pages). I have installed postgresql-7.0.2 using FreeBSD port.

--
Igor Roboul, Unix System Administrator & Programmer @ sanatorium "Raduga",
Sochi, Russia
http://www.brainbench.com/transcript.jsp?pid=304744

pgsql-general by date:

Previous
From: Michael Talbot-Wilson
Date:
Subject: Last value of a key sequence
Next
From: Mike E
Date:
Subject: Time Difference