An empty period had a length of 3
A one-day period with Boundaries::EXCLUDE_ALL() is empty: its included start falls after its included end and the iterator yields no dates. length() still measured the distance with diff()->days or abs(), which drop the sign, and returned 3, and the same happened for hours, minutes and seconds.
length() agrees with the iterator
When the start falls after the end and the iterator yields no dates, length() returns 0 for day, hour, minute and second precision. Tests also make sure non-empty periods with fractional seconds and custom iterators for months and years give the same results as before, and the README documents the rule.