Path: utzoo!attcan!uunet!ginosko!aplcen!haven!purdue!ames!apple!motcsd!hpda!hpcupt1!hpirs!wk From: wk@hpirs.HP.COM (Wayne Krone) Newsgroups: comp.unix.wizards Subject: Re: Convert string time into seconds? Message-ID: <4760015@hpirs.HP.COM> Date: 7 Jul 89 21:27:09 GMT References: <214@melpar.UUCP> Organization: Hewlett Packard, Cupertino Lines: 8 > I have a user entered time/date in the format: > yymmddhhmmss > I need to convert this into seconds since the epoch and 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