Searched refs:with_day (Results 1 – 7 of 7) sorted by relevance
/external/rust/crates/chrono/src/naive/ |
D | date.rs | 1372 fn with_day(&self, day: u32) -> Option<NaiveDate> { in with_day() method 1373 self.with_mdf(self.mdf().with_day(day)) in with_day() 1392 self.with_mdf(self.mdf().with_day(day0 + 1)) in with_day0() 2133 assert_eq!(d.with_day(0), None); in test_date_with_fields() 2134 assert_eq!(d.with_day(1), Some(NaiveDate::from_ymd(2000, 2, 1))); in test_date_with_fields() 2135 assert_eq!(d.with_day(29), Some(NaiveDate::from_ymd(2000, 2, 29))); in test_date_with_fields() 2136 assert_eq!(d.with_day(30), None); in test_date_with_fields() 2137 assert_eq!(d.with_day(u32::MAX), None); in test_date_with_fields()
|
D | internals.rs | 445 pub fn with_day(&self, day: u32) -> Mdf { in with_day() method 744 let mdf = mdf.with_day(day); in test_mdf_with_fields()
|
D | datetime.rs | 938 fn with_day(&self, day: u32) -> Option<NaiveDateTime> { in with_day() method 939 self.date.with_day(day).map(|d| NaiveDateTime { date: d, ..*self }) in with_day()
|
/external/rust/crates/chrono/src/ |
D | date.rs | 390 fn with_day(&self, day: u32) -> Option<Date<Tz>> { in with_day() method 391 map_local(self, |date| date.with_day(day)) in with_day()
|
D | lib.rs | 1315 fn with_day(&self, day: u32) -> Option<Self>; in with_day() method
|
D | datetime.rs | 589 fn with_day(&self, day: u32) -> Option<DateTime<Tz>> { in with_day() method 590 map_local(self, |datetime| datetime.with_day(day)) in with_day()
|
/external/rust/crates/chrono/ |
D | README.md | 209 assert_eq!(dt.with_day(29).unwrap().weekday(), Weekday::Sat); // 2014-11-29 is Saturday 210 assert_eq!(dt.with_day(32), None);
|