Problem with the Mayan calendar: it has no years either... But one of the smaller counts (haab) is 365 days long, I believe. So that is probably the Mayan idea of a year.
(As usual) I disagree with Dave: some people would find it useful to use durations in any calendar, so why not implement them. As long as they use days and years only, there is no problem. And if they try to add a number of months to a Mayan date, they shouldn't complain about the result.
Sure there should be Durations, but not DateTime::Durations. DateTime durations are based on the Gregorian Calendar. If you want to include durations they should be Mayan durations.
$mayan_duration = DateTime::Calendar::Mayan::Duration->new( baktuns=>1, haabs => 8, )
AFAICT there'd be no way to use ->from_object unless you convert the ::Mayan back into Gregorian, add/subtract the object, then convert it back into Mayan.
I imagine that on the whole Mayan will generally be used to convert from a DateTime into Mayan (and vice-versa). I don't think the call for inter-calendar durations will be too strong.
Cheers! Rick
--
--------------------------------------------------------
There are 10 kinds of people:
those that understand binary, and those that don't.
--------------------------------------------------------
The day Microsoft makes something that doesn't suck
is the day they start selling vacuum cleaners
--------------------------------------------------------
"Write a wise proverb and your name will live forever."
-- Anonymous
--------------------------------------------------------
