Home
last modified time | relevance | path

Searched refs:month0 (Results 1 – 11 of 11) sorted by relevance

/external/rust/crates/chrono/src/format/
Dscan.rs107 let month0 = match (buf[0] | 32, buf[1] | 32, buf[2] | 32) { in short_month0() localVariable
122 Ok((&s[3..], month0)) in short_month0()
151 let (mut s, month0) = short_month0(s)?; in short_or_long_month0()
154 let suffix = LONG_MONTH_SUFFIXES[month0 as usize]; in short_or_long_month0()
159 Ok((s, month0)) in short_or_long_month0()
Dparse.rs347 let month0 = try_consume!(scan::short_month0(s)); in parse_internal() localVariable
348 parsed.set_month(i64::from(month0) + 1).map_err(|e| (s, e))?; in parse_internal()
352 let month0 = try_consume!(scan::short_or_long_month0(s)); in parse_internal() localVariable
353 parsed.set_month(i64::from(month0) + 1).map_err(|e| (s, e))?; in parse_internal()
Dmod.rs551 result.push_str(short_months[d.month0() as usize]); in format_inner()
555 result.push_str(long_months[d.month0() as usize]); in format_inner()
650 short_months[d.month0() as usize], in format_inner()
/external/icu/icu4c/source/i18n/
Derarules.cpp308 int year, month0, dom, dow, doy, mid; in initCurrentEra() local
309 Grego::timeToFields(localMillis, year, month0, dom, dow, doy, mid); in initCurrentEra()
310 int currentEncodedDate = encodeDate(year, month0 + 1 /* changes to 1-base */, dom); in initCurrentEra()
/external/rust/crates/chrono/src/
Ddate.rs346 fn month0(&self) -> u32 { in month0() method
347 self.naive_local().month0() in month0()
385 fn with_month0(&self, month0: u32) -> Option<Date<Tz>> { in with_month0()
386 map_local(self, |date| date.with_month0(month0)) in with_month0()
Ddatetime.rs545 fn month0(&self) -> u32 { in month0() method
546 self.naive_local().month0() in month0()
584 fn with_month0(&self, month0: u32) -> Option<DateTime<Tz>> { in with_month0()
585 map_local(self, |datetime| datetime.with_month0(month0)) in with_month0()
820 date.month0() as i32, in from()
Dlib.rs1269 fn month0(&self) -> u32; in month0() method
1310 fn with_month0(&self, month0: u32) -> Option<Self>; in with_month0()
/external/rust/crates/chrono/src/naive/
Ddatetime.rs754 fn month0(&self) -> u32 { in month0() method
755 self.date.month0() in month0()
917 fn with_month0(&self, month0: u32) -> Option<NaiveDateTime> { in with_month0()
918 self.date.with_month0(month0).map(|d| NaiveDateTime { date: d, ..*self }) in with_month0()
Ddate.rs1148 fn month0(&self) -> u32 { in month0() method
1353 fn with_month0(&self, month0: u32) -> Option<NaiveDate> { in with_month0()
1354 self.with_mdf(self.mdf().with_month(month0 + 1)) in with_month0()
/external/rust/crates/chrono/src/offset/
Dlocal.rs63 tm_mon: d.month0() as i32, // yes, C is that strange... in datetime_to_timespec()
/external/rust/crates/chrono/
DREADME.md196 assert_eq!((dt.month0(), dt.day0()), (10, 27)); // for unfortunate souls