From: Tom Lane <tgl@sss.pgh.pa.us>
To: Vivek Khera <khera@kcilink.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Re: Timestamp without time zone
Date: Thu, 14 Jun 2001 13:22:37 -0400
Message-ID: <18471.992539357@sss.pgh.pa.us> (raw)
In-Reply-To: <15144.55328.741285.104733@onceler.kciLink.com>
References: <x7n17byur3.fsf@onceler.kciLink.com>
<Pine.BSO.4.10.10106141124160.17529-100000@spider.pilosoft.com>
<15144.55328.741285.104733@onceler.kciLink.com>
Vivek Khera <khera@kcilink.com> writes:
> AP> Why do you _want_ to remove timezone from values in database? There is
> AP> definitely a way to work around whatever problem you are having.
> Because my normal date parsing routines from perl's Date::Parse
> library don't recognize it, and fail to parse the date.
Leaving aside the question of whether Date::Parse isn't broken and in
need of fixing (the timestamp output format *is* ISO compliant),
it would seem that your answer lies in using to_char() to format the
timestamp value the way your client code wants, rather than expecting
the default output format to exactly meet your needs. You're not really
asking for a timestamp without timezone in the database, you're asking
how to suppress the timezone during display.
regards, tom lane
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: tgl@sss.pgh.pa.us, khera@kcilink.com
Subject: Re: Re: Timestamp without time zone
In-Reply-To: <18471.992539357@sss.pgh.pa.us>
* 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