Lines Matching refs:NaiveDate
12 use naive::{NaiveDate, NaiveDateTime, NaiveTime};
321 pub fn to_naive_date(&self) -> ParseResult<NaiveDate> { in to_naive_date() argument
372 let verify_ymd = |date: NaiveDate| { in to_naive_date()
390 let verify_isoweekdate = |date: NaiveDate| { in to_naive_date()
409 let verify_ordinal = |date: NaiveDate| { in to_naive_date()
425 let date = NaiveDate::from_ymd_opt(year, month, day).ok_or(OUT_OF_RANGE)?; in to_naive_date()
431 let date = NaiveDate::from_yo_opt(year, ordinal).ok_or(OUT_OF_RANGE)?; in to_naive_date()
441 let newyear = NaiveDate::from_yo_opt(year, 1).ok_or(OUT_OF_RANGE)?; in to_naive_date()
475 let newyear = NaiveDate::from_yo_opt(year, 1).ok_or(OUT_OF_RANGE)?; in to_naive_date()
505 let date = NaiveDate::from_isoywd_opt(isoyear, isoweek, weekday); in to_naive_date()
724 use naive::{NaiveDate, NaiveTime, MAX_DATE, MIN_DATE};
808 let ymd = |y, m, d| Ok(NaiveDate::from_ymd(y, m, d)); in test_parsed_to_naive_date()
1051 let ymdhms = |y, m, d, h, n, s| Ok(NaiveDate::from_ymd(y, m, d).and_hms(h, n, s)); in test_parsed_to_naive_datetime_with_offset()
1053 |y, m, d, h, n, s, nano| Ok(NaiveDate::from_ymd(y, m, d).and_hms_nano(h, n, s, nano)); in test_parsed_to_naive_datetime_with_offset()
1107 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()