Lines Matching refs:num_days
142 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()
493 assert_eq!(Duration::days(i32::MIN as i64).num_days(), i32::MIN as i64); in test_duration_num_days()