Lines Matching refs:trunc_subsecs
45 fn trunc_subsecs(self, digits: u16) -> Self; in trunc_subsecs() method
67 fn trunc_subsecs(self, digits: u16) -> T { in trunc_subsecs() function
322 assert_eq!(dt.trunc_subsecs(10), dt); in test_trunc_subsecs()
323 assert_eq!(dt.trunc_subsecs(9), dt); in test_trunc_subsecs()
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()
334 assert_eq!(dt.trunc_subsecs(0).second(), 13); in test_trunc_subsecs()
337 assert_eq!(dt.trunc_subsecs(9), dt); in test_trunc_subsecs()
338 assert_eq!(dt.trunc_subsecs(4), dt); 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()
344 assert_eq!(dt.trunc_subsecs(0).second(), 27); in test_trunc_subsecs()
350 assert_eq!(dt.trunc_subsecs(9), dt); in test_trunc_leap_nanos()
351 assert_eq!(dt.trunc_subsecs(4), dt); in test_trunc_leap_nanos()
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()
354 assert_eq!(dt.trunc_subsecs(1).second(), 59); in test_trunc_leap_nanos()
356 assert_eq!(dt.trunc_subsecs(0).nanosecond(), 1_000_000_000); in test_trunc_leap_nanos()
357 assert_eq!(dt.trunc_subsecs(0).second(), 59); in test_trunc_leap_nanos()