Re: Timezone template for to_char(timestamp, '...')?

From: Karel Zak <zakkr(at)zf(dot)jcu(dot)cz>
To: "Robert B(dot) Easter" <reaster(at)comptechnews(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Timezone template for to_char(timestamp, '...')?
Date: 2000-06-30 08:02:31
Message-ID: Pine.LNX.3.96.1000630095556.6084A-100000@ara.zf.jcu.cz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


On Thu, 29 Jun 2000, Robert B. Easter wrote:

> I'm using
>
> to_char(timestamp, 'Dy @MM:MIAM, Mon DD, YYYY')
>
> to format a timestamp and its works fine except I'd like to add the timezone
> (EDT etc) to the end.
>
> Is there a format template for timezone? I thought TZ might be it, but it
> doesn't work.
>
> The documentation for to_char() is here:
> http://www.postgresql.org/docs/postgres/x2976.htm

And is anything about TZ in this docs?

No, to_char() not support timezone (IMHO oracle not support it too), but
support it is not bad idea. I add it to my TODO.

By the way, - current AP/PM code is broken - fix will in new version.

Karel

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message jprem 2000-06-30 09:24:58 function for date difference ?
Previous Message Guillaume Perréal 2000-06-30 07:59:41 pg_dumpall and check constraints