Howdy Ryan:

>  I have been working on a script  which will retrieve newsgroup news
> and then output only a single day (the previous day) to an HTML file
> so that I can post the messages on a web page.   If I grab more than
> one day's worth of messages, the web page becomes too large (as much
> as 1MB.)
>
>  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

  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
  ]

        -jeff

Reply via email to