>> do %newsmaster5.r
Script: "Untitled" (none)
22-Feb-2000/15:33:09
22-Feb-2000/16:49:03+1:00
22-Feb-2000/17:00:45+1:00
22-Feb-2000/17:03:48+1:00
** Script Error: Invalid argument: Date: 22 Feb 2000 20:27:
56 +0200.
** Where: to date! value
>>

Is there something about the +0200 that to-date doesn't like?

-Ryan

> >  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
> 
>   REBOL can understand those dates, if fed in after the comma:
> 
>   get-news-date: func [
>       date-str [string!] "One of the above date strings"
>   ][
>       date-str: any [find/tail date-str ", " date-str]
>       to-date date-str
>   ]

Reply via email to