Date: Wed, 15 Nov 2000 13:24:30 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: djgpp AT delorie DOT com Subject: Re: Converting an ascii time to time_t In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Precedence: bulk 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.