Re: determining supported timezones

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Magnus Hagander <mha(at)sollentuna(dot)net>
Cc: Robert Treat <xzilla(at)users(dot)sourceforge(dot)net>, pgsql-general(at)postgresql(dot)org
Subject: Re: determining supported timezones
Date: 2004-07-14 22:25:50
Message-ID: 200407142225.i6EMPoJ23623@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


TODO?

* Show supported times

---------------------------------------------------------------------------

Magnus Hagander wrote:
> >I am trying to figure out if there is a way to determine the timezones
> >supported in postgresql from within the database. If you look at
> >http://www.postgresql.org/docs/7.4/static/datetime-keywords.html it
> >notes that time zone information is system dependent, (I interpret to
> >mean that anything I find in /usr/share/zoneinfo on linux should be
> >supported, can someone confirm that?)
>
> Yes, that should be it.
>
>
> > so how can an external app
> >determine which timezones are supported given that it could be deployed
> >against postgresql databases on different OS's. My current thinking is
> >that there is no way to get a complete list, but perhaps the list of
> >known timezones (as listed in the docs) are available? If it is not,
> >will this change in 7.5 now that we have a standard timezone library we
> >are using across platforms?
>
> In 7.5, you can check the files in <pgdir>/share/timezone. There is no
> function in the backend ATM to show them. I've been thinking of adding
> one (as a system view), but didn't get around to it before freeze. (It'd
> basically loop over the files in the directory)
>
> //Magnus
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org
>

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Robert Treat 2004-07-15 03:22:01 Re: determining supported timezones
Previous Message CSN 2004-07-14 21:32:32 Getting started with replication