• Home
  • Raw
  • Download

Lines Matching refs:Tz

47 pub struct Date<Tz: TimeZone> {
49 offset: Tz::Offset,
57 impl<Tz: TimeZone> Date<Tz> {
63 pub fn from_utc(date: NaiveDate, offset: Tz::Offset) -> Date<Tz> { in from_utc() argument
72 pub fn and_time(&self, time: NaiveTime) -> Option<DateTime<Tz>> { in and_time() argument
82 pub fn and_hms(&self, hour: u32, min: u32, sec: u32) -> DateTime<Tz> { in and_hms() argument
91 pub fn and_hms_opt(&self, hour: u32, min: u32, sec: u32) -> Option<DateTime<Tz>> { in and_hms_opt() argument
101 pub fn and_hms_milli(&self, hour: u32, min: u32, sec: u32, milli: u32) -> DateTime<Tz> { in and_hms_milli() argument
117 ) -> Option<DateTime<Tz>> { in and_hms_milli_opt() argument
127 pub fn and_hms_micro(&self, hour: u32, min: u32, sec: u32, micro: u32) -> DateTime<Tz> { in and_hms_micro() argument
143 ) -> Option<DateTime<Tz>> { in and_hms_micro_opt() argument
153 pub fn and_hms_nano(&self, hour: u32, min: u32, sec: u32, nano: u32) -> DateTime<Tz> { in and_hms_nano() argument
169 ) -> Option<DateTime<Tz>> { in and_hms_nano_opt() argument
177 pub fn succ(&self) -> Date<Tz> { in succ() argument
185 pub fn succ_opt(&self) -> Option<Date<Tz>> { in succ_opt() argument
193 pub fn pred(&self) -> Date<Tz> { in pred() argument
201 pub fn pred_opt(&self) -> Option<Date<Tz>> { in pred_opt() argument
207 pub fn offset(&self) -> &Tz::Offset { in offset()
213 pub fn timezone(&self) -> Tz { in timezone() argument
228 pub fn checked_add_signed(self, rhs: OldDuration) -> Option<Date<Tz>> { in checked_add_signed() argument
237 pub fn checked_sub_signed(self, rhs: OldDuration) -> Option<Date<Tz>> { in checked_sub_signed() argument
270 fn map_local<Tz: TimeZone, F>(d: &Date<Tz>, mut f: F) -> Option<Date<Tz>> in map_local() argument
277 impl<Tz: TimeZone> Date<Tz>
279 Tz::Offset: fmt::Display,
336 impl<Tz: TimeZone> Datelike for Date<Tz> {
375 fn with_year(&self, year: i32) -> Option<Date<Tz>> { in with_year() argument
380 fn with_month(&self, month: u32) -> Option<Date<Tz>> { in with_month() argument
385 fn with_month0(&self, month0: u32) -> Option<Date<Tz>> { in with_month0() argument
390 fn with_day(&self, day: u32) -> Option<Date<Tz>> { in with_day() argument
395 fn with_day0(&self, day0: u32) -> Option<Date<Tz>> { in with_day0() argument
400 fn with_ordinal(&self, ordinal: u32) -> Option<Date<Tz>> { in with_ordinal() argument
405 fn with_ordinal0(&self, ordinal0: u32) -> Option<Date<Tz>> { in with_ordinal0() argument
411 impl<Tz: TimeZone> Copy for Date<Tz> where <Tz as TimeZone>::Offset: Copy {}
412 unsafe impl<Tz: TimeZone> Send for Date<Tz> where <Tz as TimeZone>::Offset: Send {}
414 impl<Tz: TimeZone, Tz2: TimeZone> PartialEq<Date<Tz2>> for Date<Tz> {
420 impl<Tz: TimeZone> Eq for Date<Tz> {}
422 impl<Tz: TimeZone> PartialOrd for Date<Tz> {
423 fn partial_cmp(&self, other: &Date<Tz>) -> Option<Ordering> { in partial_cmp()
428 impl<Tz: TimeZone> Ord for Date<Tz> {
429 fn cmp(&self, other: &Date<Tz>) -> Ordering { in cmp()
434 impl<Tz: TimeZone> hash::Hash for Date<Tz> {
440 impl<Tz: TimeZone> Add<OldDuration> for Date<Tz> {
441 type Output = Date<Tz>;
444 fn add(self, rhs: OldDuration) -> Date<Tz> { in add() argument
449 impl<Tz: TimeZone> Sub<OldDuration> for Date<Tz> {
450 type Output = Date<Tz>;
453 fn sub(self, rhs: OldDuration) -> Date<Tz> { in sub() argument
458 impl<Tz: TimeZone> Sub<Date<Tz>> for Date<Tz> {
462 fn sub(self, rhs: Date<Tz>) -> OldDuration { in sub()
467 impl<Tz: TimeZone> fmt::Debug for Date<Tz> {
473 impl<Tz: TimeZone> fmt::Display for Date<Tz>
475 Tz::Offset: fmt::Display,