You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We want to perform a true chronological comparison and not a field by field comparison.
Let's see that on an example :
Datedate = parseDatetime("2003-04-26T13:01:02"); // 0 msDatedateMinusOneMs = newDate(date.getTime() - 1);
// This assertion should not fail as dates time difference is only 1ms.assertThat(date).isInSameSecondWindowAs(dateMinusOneMs);
Also clean isInSameXXXAs javadoc to make clear that they don't perform a true chronological comparison.
The text was updated successfully, but these errors were encountered:
We want to perform a true chronological comparison and not a field by field comparison.
Let's see that on an example :
Also clean isInSameXXXAs javadoc to make clear that they don't perform a true chronological comparison.
The text was updated successfully, but these errors were encountered: