Re: Postgres and timezones

From: Steve Rogerson <steve(dot)pg(at)yewtc(dot)demon(dot)co(dot)uk>
To: Steve Crawford <scrawford(at)pinpointresearch(dot)com>
Cc: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, Albe Laurenz <laurenz(dot)albe(at)wien(dot)gv(dot)at>, "pgsql-general(at)postgresql(dot)org >> PG-General Mailing List" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Postgres and timezones
Date: 2016-01-20 16:39:56
Message-ID: 569FB85C.2040206@yewtc.demon.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 20/01/16 15:38, Steve Crawford wrote:
> Is this of any use?
>
> select * from pg_timezone_names where name = 'Europe/Lisbon';
> name | abbrev | utc_offset | is_dst
> ---------------+--------+------------+--------
> Europe/Lisbon | WET | 00:00:00 | f
>

A bit - but what's missing is to know if daylight savings is in effect. So it
could be WET or WEST so we need a date time and an TZ to work it out.

Steve

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2016-01-20 16:44:01 Re: Syntax error for Function
Previous Message Steve Crawford 2016-01-20 16:18:28 Re: Postgres and timezones