• Home
  • Raw
  • Download

Lines Matching refs:Date

47 pub struct Date<Tz: TimeZone> {  struct
53 pub const MIN_DATE: Date<Utc> = Date { date: naive::MIN_DATE, offset: Utc };
55 pub const MAX_DATE: Date<Utc> = Date { date: naive::MAX_DATE, offset: Utc };
57 impl<Tz: TimeZone> Date<Tz> { implementation
63 pub fn from_utc(date: NaiveDate, offset: Tz::Offset) -> Date<Tz> { in from_utc()
64 Date { date: date, offset: offset } in from_utc()
177 pub fn succ(&self) -> Date<Tz> { in succ()
185 pub fn succ_opt(&self) -> Option<Date<Tz>> { in succ_opt()
186 self.date.succ_opt().map(|date| Date::from_utc(date, self.offset.clone())) in succ_opt()
193 pub fn pred(&self) -> Date<Tz> { in pred()
201 pub fn pred_opt(&self) -> Option<Date<Tz>> { in pred_opt()
202 self.date.pred_opt().map(|date| Date::from_utc(date, self.offset.clone())) in pred_opt()
220 pub fn with_timezone<Tz2: TimeZone>(&self, tz: &Tz2) -> Date<Tz2> { in with_timezone()
228 pub fn checked_add_signed(self, rhs: OldDuration) -> Option<Date<Tz>> { in checked_add_signed()
230 Some(Date { date: date, offset: self.offset }) in checked_add_signed()
237 pub fn checked_sub_signed(self, rhs: OldDuration) -> Option<Date<Tz>> { in checked_sub_signed()
239 Some(Date { date: date, offset: self.offset }) in checked_sub_signed()
248 pub fn signed_duration_since<Tz2: TimeZone>(self, rhs: Date<Tz2>) -> OldDuration { in signed_duration_since()
270 fn map_local<Tz: TimeZone, F>(d: &Date<Tz>, mut f: F) -> Option<Date<Tz>> in map_local()
277 impl<Tz: TimeZone> Date<Tz> impl
336 impl<Tz: TimeZone> Datelike for Date<Tz> { implementation
375 fn with_year(&self, year: i32) -> Option<Date<Tz>> { in with_year()
380 fn with_month(&self, month: u32) -> Option<Date<Tz>> { in with_month()
385 fn with_month0(&self, month0: u32) -> Option<Date<Tz>> { in with_month0()
390 fn with_day(&self, day: u32) -> Option<Date<Tz>> { in with_day()
395 fn with_day0(&self, day0: u32) -> Option<Date<Tz>> { in with_day0()
400 fn with_ordinal(&self, ordinal: u32) -> Option<Date<Tz>> { in with_ordinal()
405 fn with_ordinal0(&self, ordinal0: u32) -> Option<Date<Tz>> { in with_ordinal0()
411 impl<Tz: TimeZone> Copy for Date<Tz> where <Tz as TimeZone>::Offset: Copy {} implementation
412 unsafe impl<Tz: TimeZone> Send for Date<Tz> where <Tz as TimeZone>::Offset: Send {} implementation
414 impl<Tz: TimeZone, Tz2: TimeZone> PartialEq<Date<Tz2>> for Date<Tz> { implementation
415 fn eq(&self, other: &Date<Tz2>) -> bool { in eq()
420 impl<Tz: TimeZone> Eq for Date<Tz> {} implementation
422 impl<Tz: TimeZone> PartialOrd for Date<Tz> { implementation
423 fn partial_cmp(&self, other: &Date<Tz>) -> Option<Ordering> { in partial_cmp()
428 impl<Tz: TimeZone> Ord for Date<Tz> { implementation
429 fn cmp(&self, other: &Date<Tz>) -> Ordering { in cmp()
434 impl<Tz: TimeZone> hash::Hash for Date<Tz> { implementation
440 impl<Tz: TimeZone> Add<OldDuration> for Date<Tz> { implementation
441 type Output = Date<Tz>;
444 fn add(self, rhs: OldDuration) -> Date<Tz> { in add()
449 impl<Tz: TimeZone> Sub<OldDuration> for Date<Tz> { implementation
450 type Output = Date<Tz>;
453 fn sub(self, rhs: OldDuration) -> Date<Tz> { in sub()
458 impl<Tz: TimeZone> Sub<Date<Tz>> for Date<Tz> { implementation
462 fn sub(self, rhs: Date<Tz>) -> OldDuration { in sub()
467 impl<Tz: TimeZone> fmt::Debug for Date<Tz> { implementation
473 impl<Tz: TimeZone> fmt::Display for Date<Tz> implementation