Lines Matching refs:round_subsecs
33 fn round_subsecs(self, digits: u16) -> Self; in round_subsecs() method
52 fn round_subsecs(self, digits: u16) -> T { in round_subsecs() function
279 assert_eq!(dt.round_subsecs(10), dt); in test_round_subsecs()
280 assert_eq!(dt.round_subsecs(9), dt); in test_round_subsecs()
281 assert_eq!(dt.round_subsecs(8).nanosecond(), 084_660_680); in test_round_subsecs()
282 assert_eq!(dt.round_subsecs(7).nanosecond(), 084_660_700); in test_round_subsecs()
283 assert_eq!(dt.round_subsecs(6).nanosecond(), 084_661_000); in test_round_subsecs()
284 assert_eq!(dt.round_subsecs(5).nanosecond(), 084_660_000); in test_round_subsecs()
285 assert_eq!(dt.round_subsecs(4).nanosecond(), 084_700_000); in test_round_subsecs()
286 assert_eq!(dt.round_subsecs(3).nanosecond(), 085_000_000); in test_round_subsecs()
287 assert_eq!(dt.round_subsecs(2).nanosecond(), 080_000_000); in test_round_subsecs()
288 assert_eq!(dt.round_subsecs(1).nanosecond(), 100_000_000); in test_round_subsecs()
290 assert_eq!(dt.round_subsecs(0).nanosecond(), 0); in test_round_subsecs()
291 assert_eq!(dt.round_subsecs(0).second(), 13); in test_round_subsecs()
294 assert_eq!(dt.round_subsecs(9), dt); in test_round_subsecs()
295 assert_eq!(dt.round_subsecs(4), dt); in test_round_subsecs()
296 assert_eq!(dt.round_subsecs(3).nanosecond(), 751_000_000); in test_round_subsecs()
297 assert_eq!(dt.round_subsecs(2).nanosecond(), 750_000_000); in test_round_subsecs()
298 assert_eq!(dt.round_subsecs(1).nanosecond(), 800_000_000); in test_round_subsecs()
300 assert_eq!(dt.round_subsecs(0).nanosecond(), 0); in test_round_subsecs()
301 assert_eq!(dt.round_subsecs(0).second(), 28); in test_round_subsecs()
307 assert_eq!(dt.round_subsecs(9), dt); in test_round_leap_nanos()
308 assert_eq!(dt.round_subsecs(4), dt); in test_round_leap_nanos()
309 assert_eq!(dt.round_subsecs(2).nanosecond(), 1_750_000_000); in test_round_leap_nanos()
310 assert_eq!(dt.round_subsecs(1).nanosecond(), 1_800_000_000); in test_round_leap_nanos()
311 assert_eq!(dt.round_subsecs(1).second(), 59); in test_round_leap_nanos()
313 assert_eq!(dt.round_subsecs(0).nanosecond(), 0); in test_round_leap_nanos()
314 assert_eq!(dt.round_subsecs(0).second(), 0); in test_round_leap_nanos()