mike grommet (firstname.lastname@example.org)
Fri, 26 Feb 1999 15:22:12 -0600
From: Mike Grommet [mailto:email@example.com]
Sent: Friday, February 26, 1999 3:14 PM
To: 'Geoff Hutchison'
Subject: RE: [htdig] [Q]: Hacking source, advice please (adding search
Ok, well, theres always the getdate method from htdig/Document.cc
// time_t Document::getdate(char *datestring)
// Convert a RFC850 date string into a time value
Granted it would require something similar to be placed in the htsearch
the only thing that would have to be done is to take the web input
and convert it into this format:
Tuesday, 01-Jul-97 16:48:02 GMT or,
Thu, 01 May 1997 00:40:42 GMT
this is what the function looks for
well, the getdate routine strips off the day name anyway, and according to
if there isnt a day name, it doesnt care.
you could put the variables hours,mins,secs
inside the web based form, or leave them as hidden variables with 00 values.
So, if someone needed to search for articles between minutes, they could,
but most likely this wouldnt be necessesary for your average application.
Of course there is still some definate error checking to be performed... but
thats small stuff I think.
So what do you think?
From: Geoff Hutchison [mailto:firstname.lastname@example.org]
Sent: Friday, February 26, 1999 2:59 PM
To: mike grommet
Subject: Re: [htdig] [Q]: Hacking source, advice please (adding search
On Fri, 26 Feb 1999, mike grommet wrote:
> and of course making sure its in the time_t format, I'm really not quite
> sure where I need to place the check for acceptance and recjection based
> the time issue...
> Any ideas here?
Well if you know how to get it into a time_t, I'll be glad to code the
accept/reject code myself and post a full patch. I thought the hard part
was converting it into a time_t, since you don't know what the format is!
Maybe you've decided to restrcit the format?
> This seems to be a very useful concept, maybe this could be merged into
> regular distribution?
Most likely. That is if you contribute it. :-)
Williams Students Online
To unsubscribe from the htdig mailing list, send a message to
email@example.com containing the single word "unsubscribe" in
the SUBJECT of the message.
This archive was generated by hypermail 2.0b3 on Fri Feb 26 1999 - 14:34:13 PST