From owner-freebsd-hackers Thu Apr 10 13:28:42 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id NAA27950 for hackers-outgoing; Thu, 10 Apr 1997 13:28:42 -0700 (PDT) Received: from mail.cei.net (mail.cei.net [204.117.117.29]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id NAA27942 for ; Thu, 10 Apr 1997 13:28:38 -0700 (PDT) Received: from smtp.dancooks.com (smtp.dancooks.com [204.180.122.4]) by mail.cei.net (8.8.5/8.6.9) with SMTP id PAA31912 for ; Thu, 10 Apr 1997 15:28:35 -0500 (CDT) Received: from T2/SpoolDir by smtp.dancooks.com (Mercury 1.12); Thu, 10 Apr 97 15:28:31 -0600 Received: from SpoolDir by T2 (Mercury 1.30); 10 Apr 97 15:28:02 -0600 From: "Jason Hudgins" Organization: Dan Cook's Inc. To: hackers@freebsd.org Date: Thu, 10 Apr 1997 15:27:59 -0600 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: time.h and strptime() Priority: normal X-mailer: Pegasus Mail for Windows (v2.42a) Message-ID: <165D940071@smtp.dancooks.com> Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > > I think he meant strftime(3) which we do support. Not strftime(), this is a strptime(), which is a complementary function to strftime.. strftime() takes a tm struct and a pointer to a string and spits out a date string specified by a user supplied format ex: Aug-12-1995 strptime() takes a string like this and parses it..then fills in a tm struct...exactly the reverse of strftime. I was in the process of writing it myself, and then some nice soul just mailed me the proposed strptime source..THANKS! That just saved me several hours of toil. Plus its MUCH cleaner that gnu's strptime.c ..I gave up trying to port it because it was a hacked up piece of dung. Thanks, Jason Hudgins