From: Carl Shelbourne <Carl.Shelbourne@marconi.com>
To: pgsql-interfaces@postgresql.org
Subject: ISO8601 Time and ODBC
Date: Wed, 6 Sep 2000 16:23:59 +0100
Message-ID: <80256952.00549D8D.00@marconicomms.com> (raw)
I am trying to get a fully qualified ISO8601 string
yyyy-mm-dd hh:mm:ss.h+MM:SS where MM:SS are the time offsets to GMT.
I am Using Postgres 7, UNIXodbc.
Using psql to query the table I get the time as:
2000-08-30 12:00:00+01
But the query via ODBC returns a SQL_C_TYPE_TIMESTAMP struct defined as
SQL_C_TYPE_TIMESTAMP SQL_TIMESTAMP_STRUCT struct tagTIMESTAMP_STRUCT {
SQLSMALLINT year;
SQLUSMALLINT month;
SQLUSMALLINT day;
SQLUSMALLINT hour;
SQLUSMALLINT minute;
SQLUSMALLINT second;
SQLUINTEGER fraction;
} TIMESTAMP_STRUCT;
The problem I have is I am working across timezones and I need to know the time
offset to GMT. Currently I am in the UK on BST +01:00, which psql seems to
return,
Does anybody know how I can get the offset to the time returned by Postgres
using ODBC??, this is not included in the above struct.
Thanks
Carl
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-interfaces@postgresql.org
Cc: Carl.Shelbourne@marconi.com
Subject: Re: ISO8601 Time and ODBC
In-Reply-To: <80256952.00549D8D.00@marconicomms.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