Re: [HACKERS] [OT] Timezones and Daylight savings. - Mailing list pgsql-hackers

From Thomas Lockhart
Subject Re: [HACKERS] [OT] Timezones and Daylight savings.
Date
Msg-id 37024378.76568813@alumni.caltech.edu
Whole thread Raw
In response to [OT] Timezones and Daylight savings.  ("Jackson, DeJuan" <djackson@cpsgroup.com>)
List pgsql-hackers
> Could one of you kinds soul point me to the PostgreSQL code for 
> determining Timezones and Daylight Savings. 

backend/utils/adt/{dt.c,nabstime.c}

> If I can assess the OS's database that would be best.

Not sure what you mean here. As a guess, you should look at the
utility "zdump", which will show you the transition times for ST/DST.
You can set the TZ environment variable (or PGTZ envar when running
Postgres) to test out different time zones, which is how I can test
bug reports from other parts of the world.
                     - Tom


pgsql-hackers by date:

Previous
From: Oliver Smith
Date:
Subject: Re: [HACKERS] Date operations
Next
From: Thomas Lockhart
Date:
Subject: Re: [HACKERS] Date operations