www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/09/14/14:41:41

Date: Fri, 14 Sep 2001 21:36:38 +0300
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
Sender: halo1 AT zahav DOT net DOT il
To: Randall_E_Hess AT raytheon DOT com
Message-Id: <2561-Fri14Sep2001213636+0300-eliz@is.elta.co.il>
X-Mailer: Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.9
CC: djgpp-workers AT delorie DOT com
In-reply-to: <OF3276188E.6D367395-ON05256AC7.0062ADAB@raytheon.com>
(Randall_E_Hess AT raytheon DOT com)
Subject: Re: time functions
References: <OF3276188E DOT 6D367395-ON05256AC7 DOT 0062ADAB AT raytheon DOT com>
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> From: Randall_E_Hess AT raytheon DOT com
> Date: Fri, 14 Sep 2001 13:02:23 -0500
> 
> Everything you say makes sense, ...
> but it clashes with my actual experience.
> 
> Attached are two files:
> 
>   tx.c is a program
>   tx.lp is output from that program
> 
> As you can see, time_t seems to "flip"
> at the 2038 barrier.

What version of DJGPP do you have?  I compiled your program with DJGPP
v2.03, and I see no ``flip'': the printed years go all the way to
2044.

IIRC, some related bugs in the mktime function were fixed in
preparation for v2.03 release, so if you have an older version, it's
possible that you see a bug that was already fixed.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019