Subject: | partial DateTime::Duration ordering without a base datetime |
It would be nice to have a DateTime::Duration method that could "compare" without a base DateTime along the lines of the comparison specified for xs:duration...
http://www.w3.org/TR/xmlschema-2/#duration
This is a partial ordering, so that:
364 days < 1 year
365 days ?? 1 year
366 days ?? 1 year
367 days > 1 year
I need an implementation of this, so am planning on writing it some time next week. Should I write it as a separate module, or do you want me to write it as a contribution to DateTime::Duration itself?