Re: Setting time zone commands

From: "cnliou" <cnliou(at)so-net(dot)net(dot)tw>
To: "" <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: Setting time zone commands
Date: 2003-12-02 15:52:30
Message-ID: 1070380350.53163.cnliou@so-net.net.tw
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Thank you! Tom,

>The documentation does not actually say any such thing,
although its
>failure to clarify what it *is* saying isn't great. I have
reworded it
>as follows in CVS tip:
>
>: Table B-4 shows the time zone abbreviations recognized by
PostgreSQL in
>: date/time input values. PostgreSQL uses internal tables
for time zone
>: input decoding, since there is no standard operating
system interface to
>: provide access to general, cross-time zone information.
The underlying
>: operating system is used to provide time zone information
for output,
>: however.
>:
>: Keep in mind also that the time zone names recognized by
SET TIMEZONE
>: are operating-system dependent and may have little to do
with Table
>: B-4. For example, some systems recognize values like
'Europe/Rome' in
>: SET TIMEZONE.
>
>We do not make any attempt to document what timezone names
are accepted
>by SET TIMEZONE, because there is in general no way to find
out :-(

So, what is the official syntax? Is it like the following?

SET TIME ZONE TO 8:30
SET TIMEZONE TO 8:30
SET TIME ZONE TO -5
SET TIMEZONE TO -5

Regards,

CN

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2003-12-02 16:28:58 Re: Setting time zone commands
Previous Message Tom Lane 2003-12-02 15:28:00 Re: Misplaced modifier in Postgresql license