www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/11/14/14:47:04

From: "Felix Tilley" <ftilley AT localhost DOT localdomain>
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: <t134uuh42g2lf9@corp.supernews.com>
References: <j05n0t8b87cjho4ul7pdfkpd2th4u6pg78 AT 4ax DOT com> <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
<broeker AT physik DOT rwth-aachen DOT de> wrote: 
> Damian Yerrick <Bullcr_pd_yerrick AT hotmail DOT comremovebullcr_p> 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       |
|----------------------------------|


- Raw text -


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