Searched refs:and_hms_opt (Results 1 – 4 of 4) sorted by relevance
/external/rust/crates/chrono/src/offset/ |
D | mod.rs | 96 pub fn and_hms_opt(self, hour: u32, min: u32, sec: u32) -> LocalResult<DateTime<Tz>> { in and_hms_opt() method 99 d.and_hms_opt(hour, min, sec).map_or(LocalResult::None, LocalResult::Single) in and_hms_opt()
|
/external/rust/crates/chrono/src/ |
D | date.rs | 83 self.and_hms_opt(hour, min, sec).expect("invalid time") in and_hms() 91 pub fn and_hms_opt(&self, hour: u32, min: u32, sec: u32) -> Option<DateTime<Tz>> { in and_hms_opt() method
|
/external/rust/crates/chrono/ |
D | README.md | 168 assert_eq!(Utc.ymd_opt(2014, 7, 8).and_hms_opt(21, 15, 33), 170 assert_eq!(Utc.ymd_opt(2014, 7, 8).and_hms_opt(80, 15, 33), LocalResult::None); 171 assert_eq!(Utc.ymd_opt(2014, 7, 38).and_hms_opt(21, 15, 33), LocalResult::None);
|
/external/rust/crates/chrono/src/naive/ |
D | date.rs | 569 self.and_hms_opt(hour, min, sec).expect("invalid time") in and_hms() 591 pub fn and_hms_opt(&self, hour: u32, min: u32, sec: u32) -> Option<NaiveDateTime> { in and_hms_opt() method
|