Lines Matching refs:with_month
1334 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()
2130 assert_eq!(d.with_month(u32::MAX), None); in test_date_with_fields()