Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!crdgw1!zaire!rankins From: rankins@zaire.crd.ge.com (raymond r rankins) Newsgroups: comp.lang.c Subject: date function wanted Message-ID: <4273@crdgw1.crd.ge.com> Date: 15 Dec 89 22:02:30 GMT Sender: news@crdgw1.crd.ge.com Reply-To: rankins@zaire.crd.ge.com (raymond r rankins) Organization: General Electric Corp. R&D, Schenectady, NY Lines: 27 Does anyone know where I might find a C function that takes a date string and converts it into integer values for each of its components? What I need is something that will take a string like Fri Dec 15 16:54:26 EST 1989 and convert it into 12 15 89 16 54 26 Even something taht generated a string of integers that could be sscanf'd into a bunch of integer variables would be good. It would be nice if it would accept the date string in a variety of formats also. Just thought I'd ask before I set about trying to write my own. Thanks, Ray --- Ray Rankins |(518) 387-7340 (days)| INTERNET: rankins@zaire.crd.ge.com 2 Moonglow Rd. |(518) 583-3320 (eves)| COMPUSERVE: 71131,3236 Gansevoort, NY 12831| | AmericaOnline: RayRankins