From: Marc G. Fournier <scrappy@hub.org>
To: pgsql-sql@postgresql.org
Subject: using 'zoneinfo' to manipulate dates ...
Date: Sun, 26 Jun 2005 00:24:53 -0300 (ADT)
Message-ID: <20050626001729.G993@ganymede.hub.org> (raw)
Does anyone have a 'table of timezones' that could be used to "localize"
as part of a query?
For instance, something like:
SELECT date
FROM table
WHERE ( time || ' ' || ( SELECT timezone
FROM zones
WHERE id = table.timezone )) = '2004-12-12';
Something like this, but that works:
# select ( now() || ' ' || 'PST8PDT' )::timestamp;
ERROR: invalid input syntax for type timestamp: "2005-06-26 00:23:29.789703-03 PST8PDT"
----
Marc G. Fournier Hub.Org Networking Services (http://www.hub.org)
Email: scrappy@hub.org Yahoo!: yscrappy ICQ: 7615664
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: scrappy@hub.org
Subject: Re: using 'zoneinfo' to manipulate dates ...
In-Reply-To: <20050626001729.G993@ganymede.hub.org>
* 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