delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/11/13/07:43:36

Message-Id: <m0zeIU9-000S5BC@inti.gov.ar>
Comments: Authenticated sender is <salvador AT natacha DOT inti DOT gov DOT ar>
From: "Salvador Eduardo Tropea (SET)" <salvador AT inti DOT gov DOT ar>
Organization: INTI
To: Simon Vatche Chamlian <simon AT mpbtech DOT qc DOT ca>, djgpp AT delorie DOT com
Date: Fri, 13 Nov 1998 09:43:40 +0000
MIME-Version: 1.0
Subject: Re: "localtime" Function
In-reply-to: <1998Nov12.184114est.185115-11305@seraph.uunet.ca>
X-mailer: Pegasus Mail for Windows (v2.54)
Reply-To: djgpp AT delorie DOT com

Simon Vatche Chamlian <simon AT mpbtech DOT qc DOT ca> wrote:

> On another subject, the reason I was trying to tackle this function is because "time_t" is declared as "long" 
>in the ANSI C library. Therefore, it's valid up until the year 2037. So I 
>would like to c> I was just wondering if anybody did the job already (I'm 
>feeling lazy)?

ANSI doesn't say how long is long ;-) so isn't limited to 2037 and in fact 
that's the reason because the function returns a time_t and not a long! You 
can't fix it right now because most OSs have this limitation, you'll be 
forced to wait until your OS becomes 64 bits and recompile.

As we are in the djgpp list and we work with DOS it won't happend, but I 
doubt we will still using DOS by 2030.

SET
------------------------------------ 0 --------------------------------
Visit my home page: http://set-soft.home.ml.org/
or
http://www.geocities.com/SiliconValley/Vista/6552/
Salvador Eduardo Tropea (SET). (Electronics Engineer)
Alternative e-mail: set-soft AT usa DOT net set AT computer DOT org
ICQ: 2951574
Address: Curapaligue 2124, Caseros, 3 de Febrero
Buenos Aires, (1678), ARGENTINA
TE: +(541) 759 0013

- Raw text -


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