Home
last modified time | relevance | path

Searched refs:and_time (Results 1 – 7 of 7) sorted by relevance

/external/rust/crates/chrono/src/
Ddate.rs72 pub fn and_time(&self, time: NaiveTime) -> Option<DateTime<Tz>> { in and_time() method
73 let localdt = self.naive_local().and_time(time); in and_time()
92 NaiveTime::from_hms_opt(hour, min, sec).and_then(|time| self.and_time(time)) in and_hms_opt()
118 NaiveTime::from_hms_milli_opt(hour, min, sec, milli).and_then(|time| self.and_time(time)) in and_hms_milli_opt()
144 NaiveTime::from_hms_micro_opt(hour, min, sec, micro).and_then(|time| self.and_time(time)) in and_hms_micro_opt()
170 NaiveTime::from_hms_nano_opt(hour, min, sec, nano).and_then(|time| self.and_time(time)) in and_hms_nano_opt()
Ddatetime.rs2251 assert_eq!(d.date().and_time(d.time()), Some(d)); in test_datetime_date_and_time()
2258 assert_eq!(d.date().and_time(d.time()), Some(d)); in test_datetime_date_and_time()
2265 assert_eq!(d.date().and_time(d.time()), Some(d)); in test_datetime_date_and_time()
/external/rust/crates/chrono/src/offset/
Dmod.rs82 pub fn and_time(self, time: NaiveTime) -> LocalResult<DateTime<Tz>> { in and_time() method
85 d.and_time(time).map_or(LocalResult::None, LocalResult::Single) in and_time()
Dlocal.rs47 DateTime::from_utc(date.and_time(time) - offset, offset) in tm_to_datetime()
/external/rust/crates/chrono/src/naive/
Ddate.rs544 pub fn and_time(&self, time: NaiveTime) -> NaiveDateTime { in and_time() method
592 NaiveTime::from_hms_opt(hour, min, sec).map(|time| self.and_time(time)) in and_hms_opt()
648 NaiveTime::from_hms_milli_opt(hour, min, sec, milli).map(|time| self.and_time(time)) in and_hms_milli_opt()
704 NaiveTime::from_hms_micro_opt(hour, min, sec, micro).map(|time| self.and_time(time)) in and_hms_micro_opt()
760 NaiveTime::from_hms_nano_opt(hour, min, sec, nano).map(|time| self.and_time(time)) in and_hms_nano_opt()
/external/rust/crates/chrono/src/format/
Dmod.rs491 (Some(d), Some(t), None) => Some(d.and_time(*t).timestamp()), in format_inner()
493 Some((d.and_time(*t) - off).timestamp()) in format_inner()
Dparsed.rs575 let datetime = date.and_time(time); in to_naive_datetime_with_offset()
634 Ok(date.and_time(time)) in to_naive_datetime_with_offset()