[htdig3-dev] Corrected iso-8601 date format bug for htnotify


U.O. Telematica Municipale - Comune di Prato (tlm@po-net.prato.it)
Fri, 05 Feb 1999 18:52:15 +0100


Hi people.

I think I have fixed the trouble I previously explained about the iso-8601
format date for htnotify (Gilles was right when he said about '-').

I have introduced a function called parse_date() that scans the date string
and return the year, the month and the day. I have set it to allow these
tokens for the date:

        / - . and space too

So I could write (with iso-8601 option set):

<META NAME="htdig-notification-date" CONTENT="1999-02-10">

or

<META NAME="htdig-notification-date" CONTENT="1999 02 10">

and so on ...

I made some tests. I include the htnotify.cc source (zipped). Please try it.

It also notify (if verbose is set) every document found with an
htdig-notication meta specified. And also send a notification message for
malformed date parameters.

I'm gonna make further changes (for example I want to add the possibility
to specify the month by string: April, Apr, etc ...).

I'm very proud to have contributed to htdig, even if in a very very very
little part.

Sorry for my english, but I'm very happy too.

CIAO to Everyone
Gabriele


----------------------------------------------------------

 U.O. Rete Civica - Comune di Prato
 Via Ricasoli, 4 - 59100 Prato PO Italia
 Tel. +39 0574616342 Fax +39 0574616003

 http://www.comune.prato.it
 E-Mail: tlm@mbox.comune.prato.it

----------------------------------------------------------

------------------------------------
To unsubscribe from the htdig3-dev mailing list, send a message to
htdig3-dev@htdig.org containing the single word "unsubscribe" in
the SUBJECT of the message.



This archive was generated by hypermail 2.0b3 on Fri Feb 05 1999 - 10:21:17 PST