Searched refs:trunc_subsecs (Results 1 – 1 of 1) sorted by relevance
/external/rust/crates/chrono/src/ |
D | round.rs | 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() [all …]
|