Re: Re: Timestamp without time zone

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Vivek Khera <khera(at)kcilink(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Re: Timestamp without time zone
Date: 2001-06-14 17:22:37
Message-ID: 18471.992539357@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Vivek Khera <khera(at)kcilink(dot)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

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Alex Pilosov 2001-06-14 17:30:24 Re: Re: Timestamp without time zone
Previous Message Josh Berkus 2001-06-14 16:38:28 Re: RE: search/replace in update