inserting time_t into timestamp field(C language)

From: Cal McPherson <calm(at)adtec(dot)com(dot)au>
To: "'pgsql-interfaces(at)postgresql(dot)org'" <pgsql-interfaces(at)postgresql(dot)org>
Subject: inserting time_t into timestamp field(C language)
Date: 2004-03-17 00:29:10
Message-ID: 65ED19764468D411A6AF006094EA0F3B275D73@SERVER
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

What is the most efficient way to convert a time_t struct so that I can
insert it into a timestamp field.

Cal McPherson
Software Engineer
ADTEC Communications
Phone: +612 9213 9917 Fax: +612 9281 7575
Email: calm(at)adtec(dot)com(dot)au
Web: www.adtec.com.au

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Jonathan Gardner 2004-03-17 01:43:17 Extending PlPythonU
Previous Message Tom Lane 2004-03-16 15:40:52 Re: DataType OID for PQexecParams-call in libpq