Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Apr 1997 15:27:59 -0600
From:      "Jason Hudgins" <hudginsj@smtp.dancooks.com>
To:        hackers@freebsd.org
Subject:   Re: time.h and strptime()
Message-ID:  <165D940071@smtp.dancooks.com>

next in thread | raw e-mail | index | archive | help
> > 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
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?165D940071>