Flavio S. Glock schreef:
> - DateTime::Calendar::RataDie::Duration
> 
>   a common "duration" object to compare dates between calendars

An DT::C::RD::Duration would probably look like a DT::Duration object,
but only containing days. Durations in hours, minutes and seconds can be
converted to fractional days. (Instead, you might be able to convert
these to seconds, but I'm not sure if that conversion would be
'portable' between calendars.)

Such an object could also be called something like
DateTime::Duration::Days, DateTime::Duration::Simple,
DateTime::Duration::Portable or somesuch. It's not tied to the RataDie
'calendar'.

Only problem would be with those calendars that have a different
definition of a day...

Eugene

Reply via email to