Convert string time into seconds?
Wayne Krone
wk at hpirs.HP.COM
Sat Jul 15 07:48:32 AEST 1989
> >If you have ANSI C libraries, convert the yymmddhhmmss into a tm struct
> >and then use mktime() to convert that into seconds since the epoch.
> >
> >Wayne
>
> Is there an ANSI C/Posix/WhateverStandardYouCareToNominate function that will
> convert from a time in a string (as produced by asctime()/ctime()) ?
Not that I'm aware of. I'll start a discussion in X/Open to see if
we can address this need. A function that would convert local (German,
Japanese, ...) date/time strings as well as the asctime() string
would be useful.
Wayne
More information about the Comp.unix.wizards
mailing list