Home
last modified time | relevance | path

Searched refs:from_hms_milli_opt (Results 1 – 3 of 3) sorted by relevance

/external/rust/crates/chrono/src/naive/
Dtime.rs256 NaiveTime::from_hms_milli_opt(hour, min, sec, milli).expect("invalid time") in from_hms_milli()
282 pub fn from_hms_milli_opt(hour: u32, min: u32, sec: u32, milli: u32) -> Option<NaiveTime> { in from_hms_milli_opt() method
1535 NaiveTime::from_hms_milli_opt(3, 5, 7, 0), in test_time_from_hms_milli()
1539 NaiveTime::from_hms_milli_opt(3, 5, 7, 777), in test_time_from_hms_milli()
1543 NaiveTime::from_hms_milli_opt(3, 5, 7, 1_999), in test_time_from_hms_milli()
1546 assert_eq!(NaiveTime::from_hms_milli_opt(3, 5, 7, 2_000), None); in test_time_from_hms_milli()
1547 assert_eq!(NaiveTime::from_hms_milli_opt(3, 5, 7, 5_000), None); // overflow check in test_time_from_hms_milli()
1548 assert_eq!(NaiveTime::from_hms_milli_opt(3, 5, 7, u32::MAX), None); in test_time_from_hms_milli()
Ddate.rs648 NaiveTime::from_hms_milli_opt(hour, min, sec, milli).map(|time| self.and_time(time)) in and_hms_milli_opt()
/external/rust/crates/chrono/src/
Ddate.rs118 NaiveTime::from_hms_milli_opt(hour, min, sec, milli).and_then(|time| self.and_time(time)) in and_hms_milli_opt()