理想情况下,它会是这样的:
boolean areNearlyEqual = SomeJodaAPIClass.equal(dt1,dt2,maxTolerance);
谢谢!
new Duration(dt1,dt2).isShorterThan(Duration.millis(maxTolerance))