Home
last modified time | relevance | path

Searched refs:checked_sub_signed (Results 1 – 4 of 4) sorted by relevance

/external/rust/crates/chrono/src/
Ddate.rs237 pub fn checked_sub_signed(self, rhs: OldDuration) -> Option<Date<Tz>> { in checked_sub_signed() method
238 let date = try_opt!(self.date.checked_sub_signed(rhs)); in checked_sub_signed()
454 self.checked_sub_signed(rhs).expect("`Date - Duration` overflowed") in sub()
Ddatetime.rs230 pub fn checked_sub_signed(self, rhs: OldDuration) -> Option<DateTime<Tz>> { in checked_sub_signed() method
231 let datetime = try_opt!(self.datetime.checked_sub_signed(rhs)); in checked_sub_signed()
707 self.checked_sub_signed(rhs).expect("`DateTime - Duration` overflowed") in sub()
/external/rust/crates/chrono/src/naive/
Ddatetime.rs568 pub fn checked_sub_signed(self, rhs: OldDuration) -> Option<NaiveDateTime> { in checked_sub_signed() method
576 let date = try_opt!(self.date.checked_sub_signed(OldDuration::seconds(rhs))); in checked_sub_signed()
1325 self.checked_sub_signed(rhs).expect("`NaiveDateTime - Duration` overflowed") in sub()
2278 assert_eq!(lhs.checked_sub_signed(-rhs), sum); in test_datetime_add()
Ddate.rs925 pub fn checked_sub_signed(self, rhs: OldDuration) -> Option<NaiveDate> { in checked_sub_signed() method
1514 self.checked_sub_signed(rhs).expect("`NaiveDate - Duration` overflowed") in sub()
2187 assert_eq!(lhs.checked_sub_signed(-rhs), sum); in test_date_add()