> Unfortunately, REBOL does not understand the date formats. There
> are at least three date formats used by newsgroups, as follows:
>
> Date: Tue, 22 Feb 2000 15:33:09 GMT
> Date: Tue, 22 Feb 2000 16:49:03 +0100
> Date: 22 Feb 2000 16:00:52 GMT
The first two can be handled by 'parse-header-date, but not the third.
>> testdate: "Tue, 22 Feb 2000 15:33:09 GMT"
== "Tue, 22 Feb 2000 15:33:09 GMT"
>> print parse-header-date testdate
22-Feb-2000/15:33:09
You can get the day of week this way:
days: ["Mon" "Tue" "Wed" "Thu" "Fri" "Sat" "Sun"]
probe pick days testdate/weekday
Cheers,
Kev
------------------------------------------------------------------------
Kevin McKinnon, Network Engineer [EMAIL PROTECTED]
Sunshine Communications http://www.sunshinecable.com
PGP Public Key: http://www.dockmaster.net/pgp.html PGP 6.0 www.pgp.com