Home
last modified time | relevance | path

Searched refs:with_minute (Results 1 – 4 of 4) sorted by relevance

/external/rust/crates/chrono/src/naive/
Dtime.rs924 fn with_minute(&self, min: u32) -> Option<NaiveTime> { in with_minute() method
1583 assert_eq!(NaiveTime::from_hms(3, 5, 7).with_minute(0), Some(NaiveTime::from_hms(3, 0, 7))); in test_time_hms()
1585 NaiveTime::from_hms(3, 5, 7).with_minute(59), in test_time_hms()
1588 assert_eq!(NaiveTime::from_hms(3, 5, 7).with_minute(60), None); in test_time_hms()
1589 assert_eq!(NaiveTime::from_hms(3, 5, 7).with_minute(u32::MAX), None); in test_time_hms()
Ddatetime.rs1132 fn with_minute(&self, min: u32) -> Option<NaiveDateTime> { in with_minute() method
1133 self.time.with_minute(min).map(|t| NaiveDateTime { time: t, ..*self }) in with_minute()
/external/rust/crates/chrono/src/
Dlib.rs1398 fn with_minute(&self, min: u32) -> Option<Self>; in with_minute() method
Ddatetime.rs633 fn with_minute(&self, min: u32) -> Option<DateTime<Tz>> { in with_minute() method
634 map_local(self, |datetime| datetime.with_minute(min)) in with_minute()