Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!bionet!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: <4760016@hpirs.HP.COM> Date: 14 Jul 89 21:48:32 GMT References: <214@melpar.UUCP> Organization: Hewlett Packard, Cupertino Lines: 14 > >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