Searched refs:with_ordinal (Results 1 – 6 of 6) sorted by relevance
/external/rust/crates/chrono/src/naive/ |
D | date.rs | 1415 fn with_ordinal(&self, ordinal: u32) -> Option<NaiveDate> { in with_ordinal() method 1416 self.with_of(self.of().with_ordinal(ordinal)) in with_ordinal() 1440 self.with_of(self.of().with_ordinal(ordinal0 + 1)) in with_ordinal0() 2140 assert_eq!(d.with_ordinal(0), None); in test_date_with_fields() 2141 assert_eq!(d.with_ordinal(1), Some(NaiveDate::from_ymd(2000, 1, 1))); in test_date_with_fields() 2142 assert_eq!(d.with_ordinal(60), Some(NaiveDate::from_ymd(2000, 2, 29))); in test_date_with_fields() 2143 assert_eq!(d.with_ordinal(61), Some(NaiveDate::from_ymd(2000, 3, 1))); in test_date_with_fields() 2144 assert_eq!(d.with_ordinal(366), Some(NaiveDate::from_ymd(2000, 12, 31))); in test_date_with_fields() 2145 assert_eq!(d.with_ordinal(367), None); in test_date_with_fields() 2146 assert_eq!(d.with_ordinal(u32::MAX), None); in test_date_with_fields()
|
D | internals.rs | 309 pub fn with_ordinal(&self, ordinal: u32) -> Of { in with_ordinal() method 668 let of = of.with_ordinal(ordinal); in test_of_with_fields()
|
D | datetime.rs | 987 fn with_ordinal(&self, ordinal: u32) -> Option<NaiveDateTime> { in with_ordinal() method 988 self.date.with_ordinal(ordinal).map(|d| NaiveDateTime { date: d, ..*self }) in with_ordinal()
|
/external/rust/crates/chrono/src/ |
D | date.rs | 400 fn with_ordinal(&self, ordinal: u32) -> Option<Date<Tz>> { in with_ordinal() method 401 map_local(self, |date| date.with_ordinal(ordinal)) in with_ordinal()
|
D | lib.rs | 1325 fn with_ordinal(&self, ordinal: u32) -> Option<Self>; in with_ordinal() method
|
D | datetime.rs | 599 fn with_ordinal(&self, ordinal: u32) -> Option<DateTime<Tz>> { in with_ordinal() method 600 map_local(self, |datetime| datetime.with_ordinal(ordinal)) in with_ordinal()
|