Home
last modified time | relevance | path

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

/external/rust/crates/chrono/src/
Doldtime.rs561 const NANOS_PER_DAY: i64 = 86400_000_000_000; in test_duration_num_nanoseconds() constant
563 Duration::days(i64::MAX / NANOS_PER_DAY).num_nanoseconds(), in test_duration_num_nanoseconds()
564 Some(i64::MAX / NANOS_PER_DAY * NANOS_PER_DAY) in test_duration_num_nanoseconds()
567 Duration::days(i64::MIN / NANOS_PER_DAY).num_nanoseconds(), in test_duration_num_nanoseconds()
568 Some(i64::MIN / NANOS_PER_DAY * NANOS_PER_DAY) in test_duration_num_nanoseconds()
570 assert_eq!(Duration::days(i64::MAX / NANOS_PER_DAY + 1).num_nanoseconds(), None); in test_duration_num_nanoseconds()
571 assert_eq!(Duration::days(i64::MIN / NANOS_PER_DAY - 1).num_nanoseconds(), None); in test_duration_num_nanoseconds()