🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.mail.headers
Article #69

Re: Date -> time(2)

#69
From: Henry Spencer
Date: Thu, 12 Oct 1989 15:42
11 lines
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
Technical Details
Message-ID: <1989Oct12.154252.23144@utzoo.uucp>
Path: arc1-ca.pugleaf.net!utzoo!henry
References: <19481@ut-emx.UUCP>

Show Full Headers
Complete Article Headers
Newsgroups: comp.mail.headers,comp.lang.c
Path: arc1-ca.pugleaf.net!utzoo!henry
From: henry@utzoo.uucp (Henry Spencer)
Subject: Re: Date -> time(2)
Message-ID: <1989Oct12.154252.23144@utzoo.uucp>
Organization: U of Toronto Zoology
References: <19481@ut-emx.UUCP>
Date: Thu, 12 Oct 89 15:42:52 GMT