Searched refs:OldDuration (Results 1 – 8 of 8) sorted by relevance
/external/rust/crates/chrono/src/naive/ |
D | time.rs | 10 use oldtime::Duration as OldDuration; 532 pub fn overflowing_add_signed(&self, mut rhs: OldDuration) -> (NaiveTime, i64) { in overflowing_add_signed() 541 if rhs >= OldDuration::nanoseconds(i64::from(rfrac)) { in overflowing_add_signed() 542 rhs = rhs - OldDuration::nanoseconds(i64::from(rfrac)); in overflowing_add_signed() 545 } else if rhs < OldDuration::nanoseconds(-i64::from(frac)) { in overflowing_add_signed() 546 rhs = rhs + OldDuration::nanoseconds(i64::from(frac)); in overflowing_add_signed() 558 let rhsfrac = (rhs - OldDuration::seconds(rhssecs)).num_nanoseconds().unwrap(); in overflowing_add_signed() 559 debug_assert_eq!(OldDuration::seconds(rhssecs) + OldDuration::nanoseconds(rhsfrac), rhs); in overflowing_add_signed() 617 pub fn overflowing_sub_signed(&self, rhs: OldDuration) -> (NaiveTime, i64) { in overflowing_sub_signed() 680 pub fn signed_duration_since(self, rhs: NaiveTime) -> OldDuration { in signed_duration_since() argument [all …]
|
D | datetime.rs | 11 use oldtime::Duration as OldDuration; 489 pub fn checked_add_signed(self, rhs: OldDuration) -> Option<NaiveDateTime> { in checked_add_signed() 497 let date = try_opt!(self.date.checked_add_signed(OldDuration::seconds(rhs))); in checked_add_signed() 568 pub fn checked_sub_signed(self, rhs: OldDuration) -> Option<NaiveDateTime> { in checked_sub_signed() 576 let date = try_opt!(self.date.checked_sub_signed(OldDuration::seconds(rhs))); in checked_sub_signed() 622 pub fn signed_duration_since(self, rhs: NaiveDateTime) -> OldDuration { in signed_duration_since() argument 1252 impl Add<OldDuration> for NaiveDateTime { 1256 fn add(self, rhs: OldDuration) -> NaiveDateTime { in add() 1261 impl AddAssign<OldDuration> for NaiveDateTime { 1263 fn add_assign(&mut self, rhs: OldDuration) { in add_assign() argument [all …]
|
D | date.rs | 11 use oldtime::Duration as OldDuration; 891 pub fn checked_add_signed(self, rhs: OldDuration) -> Option<NaiveDate> { in checked_add_signed() 925 pub fn checked_sub_signed(self, rhs: OldDuration) -> Option<NaiveDate> { in checked_sub_signed() 962 pub fn signed_duration_since(self, rhs: NaiveDate) -> OldDuration { in signed_duration_since() argument 969 OldDuration::days( in signed_duration_since() 1468 impl Add<OldDuration> for NaiveDate { 1472 fn add(self, rhs: OldDuration) -> NaiveDate { in add() 1477 impl AddAssign<OldDuration> for NaiveDate { 1479 fn add_assign(&mut self, rhs: OldDuration) { in add_assign() argument 1509 impl Sub<OldDuration> for NaiveDate { [all …]
|
/external/rust/crates/chrono/src/ |
D | date.rs | 11 use oldtime::Duration as OldDuration; 228 pub fn checked_add_signed(self, rhs: OldDuration) -> Option<Date<Tz>> { in checked_add_signed() 237 pub fn checked_sub_signed(self, rhs: OldDuration) -> Option<Date<Tz>> { in checked_sub_signed() 248 pub fn signed_duration_since<Tz2: TimeZone>(self, rhs: Date<Tz2>) -> OldDuration { in signed_duration_since() argument 440 impl<Tz: TimeZone> Add<OldDuration> for Date<Tz> { 444 fn add(self, rhs: OldDuration) -> Date<Tz> { in add() 449 impl<Tz: TimeZone> Sub<OldDuration> for Date<Tz> { 453 fn sub(self, rhs: OldDuration) -> Date<Tz> { in sub() 459 type Output = OldDuration; 462 fn sub(self, rhs: Date<Tz>) -> OldDuration { in sub() argument
|
D | datetime.rs | 9 use oldtime::Duration as OldDuration; 220 pub fn checked_add_signed(self, rhs: OldDuration) -> Option<DateTime<Tz>> { in checked_add_signed() 230 pub fn checked_sub_signed(self, rhs: OldDuration) -> Option<DateTime<Tz>> { in checked_sub_signed() 239 pub fn signed_duration_since<Tz2: TimeZone>(self, rhs: DateTime<Tz2>) -> OldDuration { in signed_duration_since() argument 693 impl<Tz: TimeZone> Add<OldDuration> for DateTime<Tz> { 697 fn add(self, rhs: OldDuration) -> DateTime<Tz> { in add() 702 impl<Tz: TimeZone> Sub<OldDuration> for DateTime<Tz> { 706 fn sub(self, rhs: OldDuration) -> DateTime<Tz> { in sub() 712 type Output = OldDuration; 715 fn sub(self, rhs: DateTime<Tz>) -> OldDuration { in sub() argument
|
/external/rust/crates/chrono/src/offset/ |
D | fixed.rs | 8 use oldtime::Duration as OldDuration; 156 T: Timelike + Add<OldDuration, Output = T>, in add_with_leapsecond() argument 161 (lhs + OldDuration::seconds(i64::from(rhs))).with_nanosecond(nanos).unwrap() in add_with_leapsecond()
|
/external/rust/crates/chrono/src/format/ |
D | parsed.rs | 8 use oldtime::Duration as OldDuration; 460 .checked_add_signed(OldDuration::days(i64::from(ndays))) in to_naive_date() 494 .checked_add_signed(OldDuration::days(i64::from(ndays))) in to_naive_date() 617 datetime -= OldDuration::seconds(1); in to_naive_datetime_with_offset()
|
/external/rust/crates/chrono/ |
D | README.md | 82 duration, the reference will refer this type as `OldDuration`.
|