Xref: utzoo comp.lang.c:35313 comp.unix.programmer:857 comp.unix.questions:28116 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!decwrl!lll-winken!cert!netnews.upenn.edu!msuinfo!convex.cl.msu.edu!jap From: jap@convex.cl.msu.edu (Joe Porkka) Newsgroups: comp.lang.c,comp.unix.programmer,comp.unix.questions Subject: Re: need "yy-ddd-hh:mm:ss ==> (time_t) clock" converter Message-ID: <1991Jan18.200700.11045@msuinfo.cl.msu.edu> Date: 18 Jan 91 20:07:00 GMT References: Sender: news@msuinfo.cl.msu.edu Distribution: comp Organization: Michigan State University Lines: 13 tsingle@sunland.gsfc.nasa.gov (Tim Singletary) writes: >Help! I need something to convert yy-ddd-hh:mm:ss (i.e. year, >day_of_year, hour, minute, second) to a unix-style >_number_of_seconds_since_00:00:00_GMT,_Jan._1,_1970_. >I tried to use Sun's timelocal() function but couldn't get it to work (it Since your using a Sun you can use strptime(), at least in SunOS 4.1. I have no idea if this is a Sun defined function, or an ANSI function.