Skip site navigation (1) Skip section navigation (2)

Re: [HACKERS] Pre-1970 dates under Win32

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Claudio Natoli <claudio(dot)natoli(at)memetrics(dot)com>
Cc: "'pgsql-hackers-win32(at)postgresql(dot)org'" <pgsql-hackers-win32(at)postgresql(dot)org>,"'pgsql-hackers(at)postgresql(dot)org'" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [HACKERS] Pre-1970 dates under Win32
Date: 2004-02-02 06:57:15
Message-ID: 29481.1075705035@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-hackers-win32
Claudio Natoli <claudio(dot)natoli(at)memetrics(dot)com> writes:
> Under Win32, localtime returns NULL for dates pre 1970.

Count on Microsloth to get it wrong :-(

> If we want to support pre-1970 dates, which I imagine we do, then this
> function requires some serious rework under Win32.

I think the long-term trend here is to implement our own timezone
library and stop relying on libc for this service.  While M$ seems
to have achieved a new low, there are lots of crummy timezone
implementations out there.  I'd not recommend spending a lot of time
on patching the existing code.  Erroring out rather than crashing is
probably sufficient.

			regards, tom lane

In response to

Responses

pgsql-hackers by date

Next:From: Claudio NatoliDate: 2004-02-02 07:27:33
Subject: Re: [HACKERS] Pre-1970 dates under Win32
Previous:From: Claudio NatoliDate: 2004-02-02 05:55:37
Subject: Pre-1970 dates under Win32

pgsql-hackers-win32 by date

Next:From: Claudio NatoliDate: 2004-02-02 07:17:51
Subject: Re: [pgsql-hackers-win32] Proposed dirmod.c fix for Win32
Previous:From: Claudio NatoliDate: 2004-02-02 06:17:22
Subject: Re: CVS source win32 mingw some comile err

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group