🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc
Article #42639

Re: Bug In Microsoft C 5.1 asctime function?

#42639
From: Clarence Dold
Date: Mon, 19 Feb 1990 07:01
19 lines
1089 bytes
In article <3156@optilink.UUCP> cramer@optilink.UUCP (Clayton Cramer) writes:

>The asctime function for converting date and time to the ASCII string
>equivalent seems to fail for years after 2038.  (This should tell

#include <limits.h>
ttime = LONG_MAX;

The current time in Milliseconds: 2147483647
Mon Jan 18 19:14:07 2038
ttime++;
Invalid number of milliseconds: -2147483648
Mon Jan 18 19:14:08 2038

-- 
---
Clarence A Dold - dold@tsmiti.Convergent.COM            (408) 435-5293
               ...pyramid!ctnews!tsmiti!dold        FAX (408) 435-3105
               P.O.Box 6685, San Jose, CA 95150-6685         MS#10-007
Technical Details
Message-ID: <1400@mitisft.Convergent.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!mips!prls!pyramid!ctnews!mitisft!dold
References: <6882@tekgvs.LABS.TEK.COM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!mips!prls!pyramid!ctnews!mitisft!dold
From: dold@mitisft.Convergent.COM (Clarence Dold)
Newsgroups: comp.sys.ibm.pc
Subject: Re: Bug In Microsoft C 5.1 asctime function?
Message-ID: <1400@mitisft.Convergent.COM>
Date: 19 Feb 90 07:01:46 GMT
References: <6882@tekgvs.LABS.TEK.COM>
Organization: Convergent Technologies, San Jose, CA
Lines: 19