Date -> time(2)

Jon Boede jon at walt.cc.utexas.edu
Thu Oct 12 10:30:59 AEST 1989


Rather than re-invent the wheel, I'm looking for a piece of code that converts
the Date field of messages into a nice time(2) style long integer that my C
program can use.  The messages envelopes on the other side of a gateway I'm in
charge of use a long instead of the ASCII date -- currently we're using the
date the letter arrived at the gateway as the "Date:" which, given the speed
of most Internet letters, is pretty good... but, not always.

The variety among Date: lines is even more frightening than From: lines. :-)

If anyone has a piece of code written, please mail me.  If anyone WANTS this
code, mail me as well... I'll have to write it if I don't get somebody else's,
and I'll be happy to re-distribute.

Please mail to jon at bodedo.ucm.org as I hardly ever get a chance to read news
these days (sigh).

Thanks!
-- -  -   -    -     -      -       -        -         -          -
Jon Boede					jon at bodedo.ucm.org
7117 Wood Hollow #726		...!{uunet,texbell}!cs.utexas.edu!bodedo!jon
Austin, TX  78731-2548				+1 512 346-3142
	"People who are incapable of making decisions are
	 the ones that hit those barrels at freeway exits"



More information about the Comp.lang.c mailing list