• Home
  • Raw
  • Download

Lines Matching refs:Tz

70 pub struct DateTime<Tz: TimeZone> {
72 offset: Tz::Offset,
80 impl<Tz: TimeZone> DateTime<Tz> {
95 pub fn from_utc(datetime: NaiveDateTime, offset: Tz::Offset) -> DateTime<Tz> { in from_utc() argument
101 pub fn date(&self) -> Date<Tz> { in date() argument
199 pub fn offset(&self) -> &Tz::Offset { in offset()
205 pub fn timezone(&self) -> Tz { in timezone() argument
220 pub fn checked_add_signed(self, rhs: OldDuration) -> Option<DateTime<Tz>> { in checked_add_signed() argument
230 pub fn checked_sub_signed(self, rhs: OldDuration) -> Option<DateTime<Tz>> { in checked_sub_signed() argument
326 fn map_local<Tz: TimeZone, F>(dt: &DateTime<Tz>, mut f: F) -> Option<DateTime<Tz>> in map_local() argument
393 impl<Tz: TimeZone> DateTime<Tz>
395 Tz::Offset: fmt::Display,
535 impl<Tz: TimeZone> Datelike for DateTime<Tz> {
574 fn with_year(&self, year: i32) -> Option<DateTime<Tz>> { in with_year() argument
579 fn with_month(&self, month: u32) -> Option<DateTime<Tz>> { in with_month() argument
584 fn with_month0(&self, month0: u32) -> Option<DateTime<Tz>> { in with_month0() argument
589 fn with_day(&self, day: u32) -> Option<DateTime<Tz>> { in with_day() argument
594 fn with_day0(&self, day0: u32) -> Option<DateTime<Tz>> { in with_day0() argument
599 fn with_ordinal(&self, ordinal: u32) -> Option<DateTime<Tz>> { in with_ordinal() argument
604 fn with_ordinal0(&self, ordinal0: u32) -> Option<DateTime<Tz>> { in with_ordinal0() argument
609 impl<Tz: TimeZone> Timelike for DateTime<Tz> {
628 fn with_hour(&self, hour: u32) -> Option<DateTime<Tz>> { in with_hour() argument
633 fn with_minute(&self, min: u32) -> Option<DateTime<Tz>> { in with_minute() argument
638 fn with_second(&self, sec: u32) -> Option<DateTime<Tz>> { in with_second() argument
643 fn with_nanosecond(&self, nano: u32) -> Option<DateTime<Tz>> { in with_nanosecond() argument
649 impl<Tz: TimeZone> Copy for DateTime<Tz> where <Tz as TimeZone>::Offset: Copy {}
650 unsafe impl<Tz: TimeZone> Send for DateTime<Tz> where <Tz as TimeZone>::Offset: Send {}
652 impl<Tz: TimeZone, Tz2: TimeZone> PartialEq<DateTime<Tz2>> for DateTime<Tz> {
658 impl<Tz: TimeZone> Eq for DateTime<Tz> {}
660 impl<Tz: TimeZone, Tz2: TimeZone> PartialOrd<DateTime<Tz2>> for DateTime<Tz> {
681 impl<Tz: TimeZone> Ord for DateTime<Tz> {
682 fn cmp(&self, other: &DateTime<Tz>) -> Ordering { in cmp()
687 impl<Tz: TimeZone> hash::Hash for DateTime<Tz> {
693 impl<Tz: TimeZone> Add<OldDuration> for DateTime<Tz> {
694 type Output = DateTime<Tz>;
697 fn add(self, rhs: OldDuration) -> DateTime<Tz> { in add() argument
702 impl<Tz: TimeZone> Sub<OldDuration> for DateTime<Tz> {
703 type Output = DateTime<Tz>;
706 fn sub(self, rhs: OldDuration) -> DateTime<Tz> { in sub() argument
711 impl<Tz: TimeZone> Sub<DateTime<Tz>> for DateTime<Tz> {
715 fn sub(self, rhs: DateTime<Tz>) -> OldDuration { in sub()
720 impl<Tz: TimeZone> fmt::Debug for DateTime<Tz> {
726 impl<Tz: TimeZone> fmt::Display for DateTime<Tz>
728 Tz::Offset: fmt::Display,
780 impl<Tz: TimeZone> From<DateTime<Tz>> for SystemTime {
781 fn from(dt: DateTime<Tz>) -> SystemTime { in from()
874 fn norm<Tz: TimeZone>(dt: &Option<DateTime<Tz>>) -> Option<(&DateTime<Tz>, &Tz::Offset)> { in test_decodable_json() argument
922 fn norm<Tz: TimeZone>(dt: &Option<DateTime<Tz>>) -> Option<(&DateTime<Tz>, &Tz::Offset)> { in test_decodable_json_timestamps() argument
964 impl<Tz: TimeZone> Encodable for DateTime<Tz> {
1012 pub struct TsSeconds<Tz: TimeZone>(DateTime<Tz>);
1015 impl<Tz: TimeZone> From<TsSeconds<Tz>> for DateTime<Tz> {
1018 fn from(obj: TsSeconds<Tz>) -> DateTime<Tz> { in from() argument
1024 impl<Tz: TimeZone> Deref for TsSeconds<Tz> {
1025 type Target = DateTime<Tz>;
2047 impl<Tz: TimeZone> ser::Serialize for DateTime<Tz> {