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