Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: [ML statistic] since 19-Feb-2002 till 22-Nov-2002

From: sunandadh:aol at: 30-Nov-2002 19:19

Andrew:
> Looks like the script can't handle NZ daylight savings time which is +13 > hours ahead
This is quite a common problem -- programmers assume the offset can only logically be -12 to +12. Even though many descriptions of ISO 8601 explicitly show a +13 example, eg: http://www.mcs.vuw.ac.nz/technical/software/SGML/doc/iso8601/ISO8601.html Heaps of programs in many languages, including Rebol, are also poised to slip when a leap second is inserted -- so the last minute of the year has more than 60 seconds. Rebol fails reasonably soft as it accepts times with seconds
> 60. But, even so:
equal? 23:59:60 24:00:00 ; is not always true! Sunanda.