home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!noc.near.net!hri.com!spool.mu.edu!agate!linus!linus.mitre.org!mbunix.mitre.org!jrv
- From: jrv@mbunix.mitre.org (Van Zandt)
- Newsgroups: comp.lang.c
- Subject: Re: Need HELP with strptime....any answers/clues?????
- Message-ID: <1992Dec21.172542.28171@linus.mitre.org>
- Date: 21 Dec 92 17:25:42 GMT
- References: <BzDJuA.AGF@sdf.lonestar.org> <BzH0Bs.K4J@news.cecer.army.mil>
- Sender: news@linus.mitre.org (News Service)
- Organization: The MITRE Corp., Bedford, Ma.
- Lines: 23
- Nntp-Posting-Host: mbunix.mitre.org
-
- In article <BzH0Bs.K4J@news.cecer.army.mil> pirzyk@vinny.cecer.army.mil (Jim Pirzyk) writes:
- >In <BzDJuA.AGF@sdf.lonestar.org> jjunker@sdf.lonestar.org (Jon Junker) writes:
- >
- >>Hi:
- >>
- >>I have been working with some of the time functions (on a Sun
- >>SPARCstation IPX). After I make a call to strptime (to fill
- >>in the tm structure) I display the structure (with dbxtool) and
- >>find that the structure is filled in incorrectly. What am I
- >>doing wrong?
- ...
- >>
- >>AsciiToTime(timeString)
- >>char *timeString;
- >>{
- >> struct tm *my_tm;
- >>
- >> (void)strptime(timeString,"%Y,%j/%H%M%S",my_tm);
-
- my_tm needs to be initialized to point to a struct tm before
- asking strptime to fill it in.
-
- - Jim Van Zandt <jrv@mitre.org>
-