From: Ian Pilcher <arequipeno@gmail.com>
To: Dave Cramer <pg@fastcrypt.com>
Cc: List <pgsql-jdbc@postgresql.org>
Subject: Re: setTimestamp(int, Timestamp, Calendar) ignoring time zone?
Date: Mon, 04 Feb 2013 10:36:57 -0600
Message-ID: <510FE3A9.8090307@gmail.com> (raw)
In-Reply-To: <CADK3HHLFYFMCPnx-F0UdUhit0jZoNoejHL_mithVtaiiA-H+aQ@mail.gmail.com>
References: <kendbb$843$1@ger.gmane.org>
<CADK3HHLFYFMCPnx-F0UdUhit0jZoNoejHL_mithVtaiiA-H+aQ@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>
On 02/04/2013 04:40 AM, Dave Cramer wrote:
> What is the underlying data type ? Timestamp with timezone or without ?
Dave -
The column type is timestamp *with* time zone. Your question tends to
confirm what I suspected after re-re-re-reading various bits of Javadoc,
along with this:
http://www.postgresql.org/message-id/4B2F2CED.10400@opencloud.com
I.e. when a java.sql.Timestamp is created from a long, it represents an
absolute point in time, so "taking into account a custom timezone"
doesn't make any sense. I guess that it might makes sense when using a
timestamp without time zone, although, I'm getting a headache just
trying to think through how that might behave.
Thanks!
--
========================================================================
Ian Pilcher arequipeno@gmail.com
Sometimes there's nothing left to do but crash and burn...or die trying.
========================================================================
--
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc
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-jdbc@postgresql.org
Cc: arequipeno@gmail.com, pg@fastcrypt.com
Subject: Re: setTimestamp(int, Timestamp, Calendar) ignoring time zone?
In-Reply-To: <510FE3A9.8090307@gmail.com>
References: <kendbb$843$1@ger.gmane.org> <CADK3HHLFYFMCPnx-F0UdUhit0jZoNoejHL_mithVtaiiA-H+aQ@mail.gmail.com> <510FE3A9.8090307@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