First one: "Unspecified values (here I've not bothered to list nanoseconds) are assumed to be zero."

Actually, unspecified values default to one or zero, as appropriate (day & month default to 1). This is pretty minor, though.

Later, a more serious mistake is saying that accessors accept values. They don't. There is a set() method for setting values. The next version will also have set_X methods where X is year, month, day, etc. I strongly dislike combined get/set methods, and they won't appear in DateTime.

In the DT::Duration section you might want to mention DT::Format::Duration, which lets you do all sorts of funky things like convert between normally non-convertible units by using a "base" datetime to anchor that conversion. But that may be getting out of scope.

Thanks for the writeup.


-dave

/*===========================
VegGuide.Org
Your guide to all that's veg.
===========================*/

Reply via email to