I was just thinking about this. I'm writing it down, to see if it makes
sense...

RFC: DateTime::Calendar::RataDie

- A common calendar object for conversions to/from different calendars

- Replaces the 'rd' value that is now used for this purpose

- Internals:

  day -        rd day number
  second -     seconds from midnight
  nanosecond - nanoseconds
  is_local -   utc or local time
  other... - ?

  There is no hours, months, weeks, years.

- DateTime::Calendar::RataDie::Duration

  a common "duration" object to compare dates between calendars

- Problems:

  new implementation = new errors; lots of work

  yet another object = slower program

  other... - ?


- Flavio S. Glock

Reply via email to