need "yy-ddd-hh:mm:ss ==> (time_t) clock" converter
Joe Porkka
jap at convex.cl.msu.edu
Sat Jan 19 07:07:00 AEST 1991
tsingle at 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.
More information about the Comp.unix.programmer
mailing list