delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/11/15/06:27:38

Date: Wed, 15 Nov 2000 13:24:30 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: djgpp AT delorie DOT com
Subject: Re: Converting an ascii time to time_t
In-Reply-To: <t134uuh42g2lf9@corp.supernews.com>
Message-ID: <Pine.SUN.3.91.1001115132405.23547G-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Tue, 14 Nov 2000, Felix Tilley wrote:

> > AFAIK, DJGPP does not have strptime().  
> 
> DJGPP does indeed have strftime.

strftime and strptime are not the same thing.

> However, it does not work exactly the same as in some Linux flavors.

The DJGPP implementation includes the ANSI/ISO C89 functionality of
strftime, and a couple of extensions.  The version you see on
GNU/Linux systems is from the GNU libc (a.k.a. glibc), which includes
many more extensions, including those required by the new C9x
standard.

Volunteers are welcome to add the new features to strftime and submit
the patches.  Note that you can NOT copy code from the glibc
implementation, because the DJGPP library is distributed under a
modified LGPL license, and such modification is precluded if we use
GNU code.

> It is not at all clear how the TZ environmental variable interacts
> with mktime() and with strftime().

Please tell exactly what is unclear in DJGPP's library docs
(libc.info), and it will be made more clear in the next release.

- Raw text -


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