Lines Matching refs:nanosecond
54 let delta_down = self.nanosecond() % span; in round_subsecs()
69 let delta_down = self.nanosecond() % span; in trunc_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()
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()
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()
313 assert_eq!(dt.round_subsecs(0).nanosecond(), 0); in test_round_leap_nanos()
324 assert_eq!(dt.trunc_subsecs(8).nanosecond(), 084_660_680); in test_trunc_subsecs()
325 assert_eq!(dt.trunc_subsecs(7).nanosecond(), 084_660_600); in test_trunc_subsecs()
326 assert_eq!(dt.trunc_subsecs(6).nanosecond(), 084_660_000); in test_trunc_subsecs()
327 assert_eq!(dt.trunc_subsecs(5).nanosecond(), 084_660_000); in test_trunc_subsecs()
328 assert_eq!(dt.trunc_subsecs(4).nanosecond(), 084_600_000); in test_trunc_subsecs()
329 assert_eq!(dt.trunc_subsecs(3).nanosecond(), 084_000_000); in test_trunc_subsecs()
330 assert_eq!(dt.trunc_subsecs(2).nanosecond(), 080_000_000); in test_trunc_subsecs()
331 assert_eq!(dt.trunc_subsecs(1).nanosecond(), 0); in test_trunc_subsecs()
333 assert_eq!(dt.trunc_subsecs(0).nanosecond(), 0); in test_trunc_subsecs()
339 assert_eq!(dt.trunc_subsecs(3).nanosecond(), 750_000_000); in test_trunc_subsecs()
340 assert_eq!(dt.trunc_subsecs(2).nanosecond(), 750_000_000); in test_trunc_subsecs()
341 assert_eq!(dt.trunc_subsecs(1).nanosecond(), 700_000_000); in test_trunc_subsecs()
343 assert_eq!(dt.trunc_subsecs(0).nanosecond(), 0); in test_trunc_subsecs()
352 assert_eq!(dt.trunc_subsecs(2).nanosecond(), 1_750_000_000); in test_trunc_leap_nanos()
353 assert_eq!(dt.trunc_subsecs(1).nanosecond(), 1_700_000_000); in test_trunc_leap_nanos()
356 assert_eq!(dt.trunc_subsecs(0).nanosecond(), 1_000_000_000); in test_trunc_leap_nanos()