Date: Fri, 14 Sep 2001 21:36:38 +0300 From: "Eli Zaretskii" 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: (Randall_E_Hess AT raytheon DOT com) Subject: Re: time functions References: 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 Precedence: bulk > 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.