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

[REBOL] How to scale Date-Time properly in REBOL?

From: jason:cunliffe:verizon at: 13-Jan-2002 9:00

Hi I need robust date-time handling, for referencing a wide range of timestamped data, historical, ancient, modern, up to and including current internet messaging logfiles etc.. Ideally looking for REBOL implementation of the rich feature set offered by Marc-André Lemburg's superb mxDateTime module for Python: among the problems I have with REBOL's datetime:
>> n: now
== 13-Jan-2002/8:48-5:00
>> n/year
== 2002
>> n/year: 1400
== 1400
>> n
== 13-Jan-1400/8:48-5:00
>> n/year: -1400
== -1400
>> n
== 13-Jan-64136/8:48-5:00 oops! Is this just a bug, or is there a real prbolem in REBOL adressing historical data? How to fix this? Has anyone already written a more versatile datetime object which can override the defaults? Am I going to have to create my own date-time format and bypass rebols? If so any suggestiosn about how best to do this.. create a new datatype/protocol? what do you suggest? many thanks ./Jason