[comp.sources.wanted] Looking for ctime's inverse function

kdq@demott.com (Kevin D. Quitt) (12/28/90)

    Before I have to spend the time (re)inventing the screwdriver, does
anyone have code to parse time/date notation and return a time_t? I
don't need anything as fancy as "at", but I wouldn't turn down the
sources to it, either.  Thanks in advance. 

-- 
 _
Kevin D. Quitt         demott!kdq   kdq@demott.com
DeMott Electronics Co. 14707 Keswick St.   Van Nuys, CA 91405-1266
VOICE (818) 988-4975   FAX (818) 997-1190  MODEM (818) 997-4496 PEP last

jap@convex.cl.msu.edu (Joe Porkka) (12/29/90)

kdq@demott.com (Kevin D. Quitt) writes:


>    Before I have to spend the time (re)inventing the screwdriver, does
>anyone have code to parse time/date notation and return a time_t? I
>don't need anything as fancy as "at", but I wouldn't turn down the

strptime() in SunOS 4.1 does this.

Sorry I can't post the sources.

henry@zoo.toronto.edu (Henry Spencer) (12/30/90)

In article <1990Dec28.010508.12746@demott.com> kdq@demott.COM (Kevin D. Quitt) writes:
>    Before I have to spend the time (re)inventing the screwdriver, does
>anyone have code to parse time/date notation and return a time_t? ...

Look for "getdate" in the comp.sources.unix archives or in any of the
major news-software distributions.  Not perfect, but workable and widely
used.
-- 
"The average pointer, statistically,    |Henry Spencer at U of Toronto Zoology
points somewhere in X." -Hugh Redelmeier| henry@zoo.toronto.edu   utzoo!henry