From: "Felix Tilley" Newsgroups: comp.os.msdos.djgpp Subject: Re: Converting an ascii time to time_t Date: Tue, 14 Nov 2000 12:34:53 -0700 Organization: Posted via Supernews, http://www.supernews.com Message-ID: References: <8ugpiu$65s$1 AT nets3 DOT rz DOT RWTH-Aachen DOT DE> X-Newsreader: Pan 0.8.0beta2 X-Complaints-To: newsabuse AT supernews DOT com Lines: 28 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com In article <8ugpiu$65s$1 AT nets3 DOT rz DOT RWTH-Aachen DOT DE>, Hans-Bernhard Broeker wrote: > Damian Yerrick wrote: >> How can a DJGPP program convert two different time formats to time_t, >> using POSIX functions? > > It might be a good idea to emulate strptime(), and only compile it in > if the system you're compiling on doesn't provide strptime(), itself. > > AFAIK, DJGPP does not have strptime(). DJGPP does indeed have strftime. However, it does not work exactly the same as in some Linux flavors. I believe there is some information on this in some of the tex info documents. It is not at all clear how the TZ environmental variable interacts with mktime() and with strftime(). It is not clear on any Unix system either. -- |----------------------------------| | Felix Tilley | | Remove Percent Signs for Email | | ftilley@%azstarnet.%%%com | |----------------------------------|