Home
last modified time | relevance | path

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

/external/rust/crates/chrono/src/naive/
Ddate.rs1334 fn with_month(&self, month: u32) -> Option<NaiveDate> { in with_month() method
1335 self.with_mdf(self.mdf().with_month(month)) in with_month()
1354 self.with_mdf(self.mdf().with_month(month0 + 1)) in with_month0()
2123 assert_eq!(d.with_month(0), None); in test_date_with_fields()
2124 assert_eq!(d.with_month(1), Some(NaiveDate::from_ymd(2000, 1, 30))); in test_date_with_fields()
2125 assert_eq!(d.with_month(2), None); in test_date_with_fields()
2126 assert_eq!(d.with_month(3), Some(NaiveDate::from_ymd(2000, 3, 30))); in test_date_with_fields()
2127 assert_eq!(d.with_month(4), Some(NaiveDate::from_ymd(2000, 4, 30))); in test_date_with_fields()
2128 assert_eq!(d.with_month(12), Some(NaiveDate::from_ymd(2000, 12, 30))); in test_date_with_fields()
2129 assert_eq!(d.with_month(13), None); in test_date_with_fields()
[all …]
Dinternals.rs432 pub fn with_month(&self, month: u32) -> Mdf { in with_month() method
735 let mdf = mdf.with_month(month); in test_mdf_with_fields()
Ddatetime.rs895 fn with_month(&self, month: u32) -> Option<NaiveDateTime> { in with_month() method
896 self.date.with_month(month).map(|d| NaiveDateTime { date: d, ..*self }) in with_month()
/external/rust/crates/chrono/src/
Ddate.rs380 fn with_month(&self, month: u32) -> Option<Date<Tz>> { in with_month() method
381 map_local(self, |date| date.with_month(month)) in with_month()
Ddatetime.rs579 fn with_month(&self, month: u32) -> Option<DateTime<Tz>> { in with_month() method
580 map_local(self, |datetime| datetime.with_month(month)) in with_month()
2445 let dt = Local::now().with_month(5).unwrap(); in test_datetime_format_with_local()
Dlib.rs1305 fn with_month(&self, month: u32) -> Option<Self>; in with_month() method
/external/rust/crates/chrono/
DREADME.md411 and consequently `Utc.ymd(2014, 1, 30).with_month(2)` returns `None`.