The function to-date appears to perform selective validation on the supplied time zone giving a script error : >> a: to date! "10-11-04 03:00 +00:31" ** Script Error: Invalid argument: 10-11-04 03:00 +00:31 ** Near: a: to date! "10-11-04 03:00 +00:31" Through experimentation I have determined that to-date will on accept 00 or 30 minutes. Yet if you directly "set" the zone of a date, Rebol happily rounds the zone down to either 00 or 30 minutes: >> b: to-date "10-11-04 03:00" == 10-Nov-2004/3:00 >> b/zone: 00:31 == 0:31 >> b/zone == 0:30 I also found that to-date is quite happy to accept strange timezones provided they are a multiple of 30 minutes: >> e: to-date "10-11-04 03:00 +26:00" == 10-Nov-2004/3:00+26:00 Regards Peter
-- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.296 / Virus Database: 265.6.11 - Release Date: 12/01/2005 -- To unsubscribe from the list, just send an email to rebol-request at rebol.com with unsubscribe as the subject.
