Home
last modified time | relevance | path

Searched refs:signed_duration_since (Results 1 – 8 of 8) sorted by relevance

/external/rust/crates/chrono/src/naive/
Ddatetime.rs622 pub fn signed_duration_since(self, rhs: NaiveDateTime) -> OldDuration { in signed_duration_since() method
623 self.date.signed_duration_since(rhs.date) + self.time.signed_duration_since(rhs.time) in signed_duration_since()
1385 self.signed_duration_since(rhs) in sub()
2299 let max_days_from_year_0 = MAX_DATE.signed_duration_since(NaiveDate::from_ymd(0, 1, 1)); in test_datetime_add()
2309 let min_days_from_year_0 = MIN_DATE.signed_duration_since(NaiveDate::from_ymd(0, 1, 1)); in test_datetime_add()
2318 let since = NaiveDateTime::signed_duration_since; in test_datetime_sub()
2485 assert_eq!(t, time.signed_duration_since(base).num_microseconds().unwrap()); in test_datetime_add_sub_invariant()
Ddate.rs127 let maxsecs = MAX_DATE.signed_duration_since(MIN_DATE).num_seconds(); in test_date_bounds()
962 pub fn signed_duration_since(self, rhs: NaiveDate) -> OldDuration { in signed_duration_since() method
1556 self.signed_duration_since(rhs) in sub()
1581 let exact_size = MAX_DATE.signed_duration_since(self.value).num_days(); in size_hint()
1606 let exact_size = MAX_DATE.signed_duration_since(self.value).num_weeks(); in size_hint()
2216 assert_eq!(lhs.signed_duration_since(rhs), diff); in test_date_sub()
2217 assert_eq!(rhs.signed_duration_since(lhs), -diff); in test_date_sub()
Dtime.rs680 pub fn signed_duration_since(self, rhs: NaiveTime) -> OldDuration { in signed_duration_since() method
1215 self.signed_duration_since(rhs) in sub()
1684 assert_eq!($lhs.signed_duration_since($rhs), $diff); in test_time_sub()
1685 assert_eq!($rhs.signed_duration_since($lhs), -$diff); in test_time_sub()
/external/rust/crates/chrono/src/
Ddate.rs248 pub fn signed_duration_since<Tz2: TimeZone>(self, rhs: Date<Tz2>) -> OldDuration { in signed_duration_since() method
249 self.date.signed_duration_since(rhs.date) in signed_duration_since()
463 self.signed_duration_since(rhs) in sub()
Ddatetime.rs239 pub fn signed_duration_since<Tz2: TimeZone>(self, rhs: DateTime<Tz2>) -> OldDuration { in signed_duration_since() method
240 self.datetime.signed_duration_since(rhs.datetime) in signed_duration_since()
716 self.signed_duration_since(rhs) in sub()
2235 dt.signed_duration_since(Edt.ymd(2014, 5, 6).and_hms(10, 11, 12)), in test_datetime_offset()
/external/rust/crates/chrono/src/format/
Dparsed.rs1107 MAX_DATE.signed_duration_since(NaiveDate::from_ymd(1970, 1, 1)); in test_parsed_to_naive_datetime_with_offset()
1109 NaiveDate::from_ymd(0, 1, 1).signed_duration_since(NaiveDate::from_ymd(1970, 1, 1)); in test_parsed_to_naive_datetime_with_offset()
1111 MIN_DATE.signed_duration_since(NaiveDate::from_ymd(1970, 1, 1)); in test_parsed_to_naive_datetime_with_offset()
/external/rust/crates/chrono/
DREADME.md216 assert_eq!(dt1.signed_duration_since(dt2), Duration::seconds(-2 * 3600 + 2));
217 assert_eq!(dt2.signed_duration_since(dt1), Duration::seconds(2 * 3600 - 2));
DCHANGELOG.md421 `signed_duration_since`, following the naming in `std::time`.