Re: Pre-1970 dates under Win32 - Mailing list pgsql-hackers

From Kurt Roeckx
Subject Re: Pre-1970 dates under Win32
Date
Msg-id 20040202073737.GA30929@ping.be
Whole thread Raw
In response to Re: Pre-1970 dates under Win32  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Pre-1970 dates under Win32  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Mon, Feb 02, 2004 at 01:57:15AM -0500, Tom Lane wrote:
> Claudio Natoli <claudio.natoli@memetrics.com> writes:
> > Under Win32, localtime returns NULL for dates pre 1970.
>
> Count on Microsloth to get it wrong :-(

I had a discussion about time_t some weeks ago.  There is nothing
in the standard that says time_t must be a signed, all it says is
that (time_t)(-1) represents an invalid value.

There are other OS's that have an unsigned time_t.


Kurt


pgsql-hackers by date:

Previous
From: Claudio Natoli
Date:
Subject: Re: Pre-1970 dates under Win32
Next
From: Christopher Kings-Lynne
Date:
Subject: pg_stat_activity