ASCII-->internal time

Wayne Krone wk at hpirs.HP.COM
Tue Jun 13 10:13:35 AEST 1989


>     I've been reviewing ctime, et al and note that they are good for 
>     converting UNIX internal time format into ascii and struct tm but 
>     don't provide a way to convert from ascii or struct tm back to UNIX 
>     internal format.  I don't see a cousin which has that functionality

The draft standard for ANSI C defines a function mktime() which converts
a tm structure into a time_t value (time_t is the type ANSI C defines to
be returned by the time() function).

Wayne Krone



More information about the Comp.unix.questions mailing list