This would serve to eliminate the “one nanosecond problem,” among other things.
Adding a fuzz factor would not fix passing the wrong arguments to the constructor (as was the case here), it would just hide the error.
As for doing a fuzzy comparison, it's already quite easy.
In reply to Re^2: DateTime::Span intersection inconsistencies
by ikegami
in thread DateTime::Span intersection inconsistencies
by mikeman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |