Home
last modified time | relevance | path

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

/external/rust/crates/plotters/src/coord/ranged1d/types/
Ddatetime.rs44 let total_days = total_span.num_days() as f64; in map_coord()
45 let value_days = value_span.num_days() as f64; in map_coord()
186 let total_days = (self.1.clone() - self.0.clone()).num_days(); in key_points()
218 ((self.1.clone() - self.0.clone()).num_days().max(-1) + 1) as usize in size()
222 let ret = (value.clone() - self.0.clone()).num_days(); in index_of()
694 let total_days = total_span.num_days(); in map()
695 let value_days = value_span.num_days(); in map()
729 let begin_days = self.0.num_days(); in key_points()
730 let end_days = self.1.num_days(); in key_points()
751 self.0.num_days() in key_points()
[all …]
/external/rust/crates/chrono/src/
Doldtime.rs142 self.num_days() / 7 in num_weeks()
146 pub fn num_days(&self) -> i64 { in num_days() method
485 assert_eq!(Duration::zero().num_days(), 0); in test_duration_num_days()
486 assert_eq!(Duration::days(1).num_days(), 1); in test_duration_num_days()
487 assert_eq!(Duration::days(-1).num_days(), -1); in test_duration_num_days()
488 assert_eq!(Duration::seconds(86399).num_days(), 0); in test_duration_num_days()
489 assert_eq!(Duration::seconds(86401).num_days(), 1); in test_duration_num_days()
490 assert_eq!(Duration::seconds(-86399).num_days(), 0); in test_duration_num_days()
491 assert_eq!(Duration::seconds(-86401).num_days(), -1); in test_duration_num_days()
492 assert_eq!(Duration::days(i32::MAX as i64).num_days(), i32::MAX as i64); in test_duration_num_days()
[all …]
/external/rust/crates/chrono/src/naive/
Ddate.rs895 let cycle = try_opt!((cycle as i32).checked_add(try_opt!(rhs.num_days().to_i32()))); in checked_add_signed()
929 let cycle = try_opt!((cycle as i32).checked_sub(try_opt!(rhs.num_days().to_i32()))); in checked_sub_signed()
1581 let exact_size = MAX_DATE.signed_duration_since(self.value).num_days(); in size_hint()
/external/rust/crates/libc/src/
Dpsp.rs3303 pub fn sceRtcTickAddDays(dest_tick: *mut u64, src_tick: *const u64, num_days: u64) -> i32; in sceRtcTickAddDays()