Convert string time into seconds?

Victor Gavin vic at zen.co.uk
Wed Jul 12 05:50:40 AEST 1989


In article <4760015 at hpirs.HP.COM> wk at hpirs.HP.COM (Wayne Krone) writes:
>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()) ?

[[I've always wanted one for those odd occasions, but have (up to now) been
able to do without]]

			vic
--
Victor Gavin						Zengrange Limited
vic at zen.co.uk						Greenfield Road
..!mcvax!ukc!zen.co.uk!vic				Leeds England
+44 532 489048						LS9 8DB



More information about the Comp.unix.wizards mailing list