Home
last modified time | relevance | path

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

/external/rust/crates/chrono/src/
Dlib.rs1344 fn num_days_from_ce(&self) -> i32 { in num_days_from_ce() method
1506 fn num_days_from_ce<Date: Datelike>(date: &Date) -> i32 { in test_num_days_from_ce_against_alternative_impl() function
1519 jan1_year.num_days_from_ce(), in test_num_days_from_ce_against_alternative_impl()
1520 num_days_from_ce(&jan1_year), in test_num_days_from_ce_against_alternative_impl()
1525 assert_eq!(mid_year.num_days_from_ce(), num_days_from_ce(&mid_year), "on {:?}", mid_year); in test_num_days_from_ce_against_alternative_impl()
/external/rust/crates/chrono/src/naive/
Ddate.rs2036 assert_eq!(from_ndays_from_ce(days).map(|d| d.num_days_from_ce()), Some(days)); in test_date_from_num_days_from_ce()
2039 assert_eq!(from_ndays_from_ce(MIN_DATE.num_days_from_ce()), Some(MIN_DATE)); in test_date_from_num_days_from_ce()
2040 assert_eq!(from_ndays_from_ce(MIN_DATE.num_days_from_ce() - 1), None); in test_date_from_num_days_from_ce()
2041 assert_eq!(from_ndays_from_ce(MAX_DATE.num_days_from_ce()), Some(MAX_DATE)); in test_date_from_num_days_from_ce()
2042 assert_eq!(from_ndays_from_ce(MAX_DATE.num_days_from_ce() + 1), None); in test_date_from_num_days_from_ce()
2151 assert_eq!(NaiveDate::from_ymd(1, 1, 1).num_days_from_ce(), 1); in test_date_num_days_from_ce()
2155 NaiveDate::from_ymd(year, 1, 1).num_days_from_ce(), in test_date_num_days_from_ce()
2156 NaiveDate::from_ymd(year - 1, 12, 31).num_days_from_ce() + 1 in test_date_num_days_from_ce()
Ddatetime.rs281 let gregorian_day = i64::from(self.date.num_days_from_ce()); in timestamp()
/external/rust/crates/chrono/benches/
Dchrono.rs100 b.iter(|| y.num_days_from_ce()) in bench_num_days_from_ce()
/external/rust/crates/chrono/
DREADME.md201 assert_eq!(dt.num_days_from_ce(), 735565); // the number of days from and including Jan 1, 1
211 assert_eq!(dt.with_year(-300).unwrap().num_days_from_ce(), -109606); // November 29, 301 BCE