Thread View: comp.mail.headers
2 messages
2 total messages
Started by Jon Boede
Thu, 12 Oct 1989 00:30
Date -> time(2)
Author: Jon Boede
Date: Thu, 12 Oct 1989 00:30
Date: Thu, 12 Oct 1989 00:30
23 lines
1570 bytes
1570 bytes
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@bodedo.ucm.org as I hardly ever get a chance to read news
these days (sigh).
Thanks!
-- - - - - - - - - - -
Jon Boede jon@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"
Re: Date -> time(2)
Author: Henry Spencer
Date: Thu, 12 Oct 1989 15:42
Date: Thu, 12 Oct 1989 15:42
11 lines
870 bytes
870 bytes
In article <19481@ut-emx.UUCP> jon@walt.cc.utexas.edu (Jon Boede) writes: >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... Check out the getdate() function, shipped with most versions of news software. It's the de-facto standard for such things. It is not perfect, but pretty good. -- A bit of tolerance is worth a | Henry Spencer at U of Toronto Zoology megabyte of flaming. | uunet!attcan!utzoo!henry henry@zoo.toronto.edu
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads