From: Achilleus Mantzios <achill@matrix.gatewaynet.com>
To: pgsql-sql@postgresql.org
Subject: Timestamp with timezone question.
Date: Mon, 21 Feb 2005 16:16:04 +0200 (EET)
Message-ID: <Pine.LNX.4.44.0502211557140.7123-100000@matrix.gatewaynet.com> (raw)
AFAIK, the input for a timestamptz is converted and stored as UTC.
And outputing a timezonetz value converts the internally stored UTC
value to the current locale's timezone.
So there is not a way to actually store the original TZ itself,
whereas the timetz type clearly does that.
Consider a schema designed to store internet mail.
Since pgsql always converts a timestamptz to UTC, we have lost
the information of the Sender's local timezone.
Should i go with a separete date and timetz ?
--
-Achilleus
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-sql@postgresql.org
Cc: achill@matrix.gatewaynet.com
Subject: Re: Timestamp with timezone question.
In-Reply-To: <Pine.LNX.4.44.0502211557140.7123-100000@matrix.gatewaynet.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