| delorie.com/archives/browse.cgi | search |
| Sender: | richdawe AT bigfoot DOT com |
| Message-ID: | <3A170569.E5331AE5@bigfoot.com> |
| Date: | Sat, 18 Nov 2000 22:40:41 +0000 |
| From: | Richard Dawe <richdawe AT bigfoot DOT com> |
| X-Mailer: | Mozilla 4.51 [en] (X11; I; Linux 2.2.17 i586) |
| X-Accept-Language: | de,fr |
| MIME-Version: | 1.0 |
| To: | Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>, |
| DJGPP newsgroup <djgpp AT delorie DOT com> | |
| Subject: | Re: Converting an ascii time to time_t |
| References: | <j05n0t8b87cjho4ul7pdfkpd2th4u6pg78 AT 4ax DOT com> <8ugpiu$65s$1 AT nets3 DOT rz DOT RWTH-Aachen DOT DE> |
| Reply-To: | djgpp AT delorie DOT com |
Hello.
Hans-Bernhard Broeker 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?
>
> If I'm not totally mistaken after consulting some Unix systems'
> manpages, you can't. At least not easily. The function you would need
> is strptime(). But that doesn't seem to be required even by POSIX.
> Only the X/Open group standard set of library functions 'XPG4' seems
> to include it.
It's also defined in the Unix98 specification. See:
http://www.unix-systems.org/
or: http://www.opengroup.org/
for a downloadable copy of the spec.
BTW did the X/Open Group change into the Open Group?
Bye,
--
Richard Dawe
[ mailto:richdawe AT bigfoot DOT com | http://www.bigfoot.com/~richdawe/ ]
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |