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

[REBOL] Date/Time Difference - Feature or Bug?

From: gjones05::mail::orion::org at: 11-May-2001 13:22

While working with date/time(s) in REBOL between time zones, I noticed what seems to be an unexpected result. t1: 11-May-2001/13:08:52-5:00 t2: 11-May-2001/13:08:52-7:00 t1/time - t2/time ; result 0:00 ... because of path refinement, ok t1/zone - t2/zone ; result 2:00 ... ok t1 - t2 ; result 0 ... hmmm equal? t1 t2 ; result false ... ok Given the GMT offset, it seems as though the calculation t1 - t2 should give a 2 hour difference. Am I missing something obvious? --Scott Jones