ts.getTotalNanoseconds());
}
/** Tests the constructor {@link TimeSpan#TimeSpan(int, int, int)}. */
public void testCtorInt3() {
checkFields(new TimeSpan(0, 0, 0), 0, 0, 0, 0, 0, 0, 0, 0L);
checkFields(new TimeSpan(3, 5, 7), 0, 3, 5, 7, 0, 0, 0, 11107000000000L);
// overflow into days
checkFields(new TimeSpan(24, 0, 0), 1, 0, 0, 0, 0, 0, 0, 86400000000000L);
checkFields(new TimeSpan(25, 1, 2), 1, 1, 1, 2, 0, 0, 0, 90062000000000L);
// overflow into hours
checkFields(new TimeSpan(0, 60, 0), 0, 1, 0, 0, 0, 0, 0, 3600000000000L);
checkFields(new TimeSpan(0, 61, 28), 0, 1, 1, 28, 0, 0, 0, 3688000000000L);
// overflow into minutes
checkFields(new TimeSpan(0, 0, 60), 0, 0, 1, 0, 0, 0, 0, 60000000000L);
checkFields(new TimeSpan(1, 2, 63), 0, 1, 3, 3, 0, 0, 0, 3783000000000L);
checkFields(new TimeSpan(0, 60, 60), 0, 1, 1, 0, 0, 0, 0, 3660000000000L);
checkFields(new TimeSpan(24, 60, 60), 1, 1, 1, 0, 0, 0, 0, 90060000000000L);
checkFields(new TimeSpan(48, 128, 720), 2, 2, 20, 0, 0, 0, 0,
181200000000000L);
}