Maybe I'm just a knucklehead, but I started out thinking that DateTime::Duration->compare() would return true if the two durations were the same, and false if they were not. When that wasn't working, I looked at the docs and could find nothing to say what it *does* return. But I noticed that the synopsis uses compare() in sort {}, and so realized what the return values are.

I've attached a patch that documents the return values, to help future knuckleheads more easily figure stuff out.

Best,

David

Attachment: compare_retvals.patch
Description: Binary data

Reply via email to