Re: ecpg and the timezone database - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: ecpg and the timezone database
Date
Msg-id 200405021821.i42ILVU15486@candle.pha.pa.us
Whole thread Raw
In response to Re: ecpg and the timezone database  (Michael Meskes <meskes@postgresql.org>)
List pgsql-hackers
Michael Meskes wrote:
> On Fri, Apr 30, 2004 at 04:48:33PM -0400, Bruce Momjian wrote:
> > Does ecpg need to use the same timezone database as the backend?
> 
> I have to check what you changed. ecpg itself does not use the timezone
> database, but some of that code is used in pgtypeslib.

For changes see include/port.h:#define localtime(timep) pg_localtime(timep)#define gmtime(timep)
pg_gmtime(timep)#defineasctime(timep) pg_asctime(timep)#define ctime(timep) pg_ctime(timep)#define difftime(t1,t2)
pg_difftime(t1,t2)#definemktime(tm) pg_mktime(tm)#define tzset pg_tzset
 

Right now it is only Win32, but there are plans to use this for all
ports.

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


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [INTERFACES] ecpg and the timezone database
Next
From: Peter Eisentraut
Date:
Subject: Re: Fixed directory locations in installs