Searched refs:from_hms_micro_opt (Results 1 – 3 of 3) sorted by relevance
/external/rust/crates/chrono/src/naive/ |
D | time.rs | 308 NaiveTime::from_hms_micro_opt(hour, min, sec, micro).expect("invalid time") in from_hms_micro() 334 pub fn from_hms_micro_opt(hour: u32, min: u32, sec: u32, micro: u32) -> Option<NaiveTime> { in from_hms_micro_opt() method 1554 NaiveTime::from_hms_micro_opt(3, 5, 7, 0), in test_time_from_hms_micro() 1558 NaiveTime::from_hms_micro_opt(3, 5, 7, 333), in test_time_from_hms_micro() 1562 NaiveTime::from_hms_micro_opt(3, 5, 7, 777_777), in test_time_from_hms_micro() 1566 NaiveTime::from_hms_micro_opt(3, 5, 7, 1_999_999), in test_time_from_hms_micro() 1569 assert_eq!(NaiveTime::from_hms_micro_opt(3, 5, 7, 2_000_000), None); in test_time_from_hms_micro() 1570 assert_eq!(NaiveTime::from_hms_micro_opt(3, 5, 7, 5_000_000), None); // overflow check in test_time_from_hms_micro() 1571 assert_eq!(NaiveTime::from_hms_micro_opt(3, 5, 7, u32::MAX), None); in test_time_from_hms_micro()
|
D | date.rs | 704 NaiveTime::from_hms_micro_opt(hour, min, sec, micro).map(|time| self.and_time(time)) in and_hms_micro_opt()
|
/external/rust/crates/chrono/src/ |
D | date.rs | 144 NaiveTime::from_hms_micro_opt(hour, min, sec, micro).and_then(|time| self.and_time(time)) in and_hms_micro_opt()
|