Home
last modified time | relevance | path

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

/external/rust/crates/chrono/src/
Dround.rs277 let dt = pst.ymd(2018, 1, 11).and_hms_nano(10, 5, 13, 084_660_684); in test_round_subsecs()
293 let dt = Utc.ymd(2018, 1, 11).and_hms_nano(10, 5, 27, 750_500_000); in test_round_subsecs()
306 let dt = Utc.ymd(2016, 12, 31).and_hms_nano(23, 59, 59, 1_750_500_000); in test_round_leap_nanos()
320 let dt = pst.ymd(2018, 1, 11).and_hms_nano(10, 5, 13, 084_660_684); in test_trunc_subsecs()
336 let dt = pst.ymd(2018, 1, 11).and_hms_nano(10, 5, 27, 750_500_000); in test_trunc_subsecs()
349 let dt = Utc.ymd(2016, 12, 31).and_hms_nano(23, 59, 59, 1_750_500_000); in test_trunc_leap_nanos()
362 let dt = Utc.ymd(2016, 12, 31).and_hms_nano(23, 59, 59, 175_500_000); in test_duration_round()
411 let dt = Utc.ymd(2016, 12, 31).and_hms_nano(23, 59, 59, 1_75_500_000); in test_duration_trunc()
Ddatetime.rs2335 let dt = pst.ymd(2018, 1, 11).and_hms_nano(10, 5, 13, 084_660_000); in test_rfc3339_opts()
2474 let datetime = Utc.ymd(2014, 7, 8).and_hms_nano(9, 10, 11, 1234567); in test_subsecond_part()
2493 Utc.ymd(2001, 9, 9).and_hms_nano(1, 46, 39, nanos) in test_from_system_time()
2497 Utc.ymd(1938, 4, 24).and_hms_nano(22, 13, 20, 1) in test_from_system_time()
2503 SystemTime::from(Utc.ymd(2001, 9, 9).and_hms_nano(1, 46, 39, nanos)), in test_from_system_time()
2507 SystemTime::from(Utc.ymd(1938, 4, 24).and_hms_nano(22, 13, 20, 1)), in test_from_system_time()
2533 Utc.ymd(2001, 9, 9).and_hms_nano(1, 46, 39, nanos) in test_from_system_time()
2537 Utc.ymd(1938, 4, 24).and_hms_nano(22, 13, 20, 1_000) in test_from_system_time()
2543 SystemTime::from(Utc.ymd(2001, 9, 9).and_hms_nano(1, 46, 39, nanos)), in test_from_system_time()
2547 SystemTime::from(Utc.ymd(1938, 4, 24).and_hms_nano(22, 13, 20, 1_000)), in test_from_system_time()
Ddate.rs153 pub fn and_hms_nano(&self, hour: u32, min: u32, sec: u32, nano: u32) -> DateTime<Tz> { in and_hms_nano() method
/external/rust/crates/chrono/benches/
Dchrono.rs41 let dt = pst.ymd(2018, 1, 11).and_hms_nano(10, 5, 13, 084_660_000); in bench_datetime_to_rfc2822()
47 let dt = pst.ymd(2018, 1, 11).and_hms_nano(10, 5, 13, 084_660_000); in bench_datetime_to_rfc3339()
/external/rust/crates/chrono/src/naive/
Ddatetime.rs1521 to_string(&NaiveDate::from_ymd(-1, 12, 31).and_hms_nano(23, 59, 59, 7)).ok(), in test_encodable_json()
1529 to_string(&MAX_DATE.and_hms_nano(23, 59, 59, 1_999_999_999)).ok(), in test_encodable_json()
1564 Some(NaiveDate::from_ymd(-1, 12, 31).and_hms_nano(23, 59, 59, 7)) in test_decodable_json()
1569 Some(MAX_DATE.and_hms_nano(23, 59, 59, 1_999_999_999)) in test_decodable_json()
1573 Some(MAX_DATE.and_hms_nano(23, 59, 59, 1_999_999_999)) in test_decodable_json()
2421 |y, m, d, h, n, s, nano| NaiveDate::from_ymd(y, m, d).and_hms_nano(h, n, s, nano); in test_datetime_parse_from_str()
Ddate.rs728 pub fn and_hms_nano(&self, hour: u32, min: u32, sec: u32, nano: u32) -> NaiveDateTime { in and_hms_nano() method
/external/rust/crates/chrono/src/format/
Dstrftime.rs545 let dt = FixedOffset::east(34200).ymd(2001, 7, 8).and_hms_nano(0, 34, 59, 1_026_490_708); in test_strftime_docs()
623 let dt = FixedOffset::east(34200).ymd(2001, 7, 8).and_hms_nano(0, 34, 59, 1_026_490_708); in test_strftime_docs_localized()
Dparsed.rs1053 |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()
1201 Ok(FixedOffset::east(off).ymd(y, m, d).and_hms_nano(h, n, s, nano)) in test_parsed_to_datetime()
1245 Ok(Utc.ymd(2014, 12, 31).and_hms_nano(4, 26, 40, 12_345_678)) in test_parsed_to_datetime_with_timezone()
1263 Ok(FixedOffset::east(32400).ymd(2014, 12, 31).and_hms_nano(13, 26, 40, 12_345_678)) in test_parsed_to_datetime_with_timezone()
/external/rust/crates/chrono/
DREADME.md165 assert_eq!(dt, Utc.ymd(2014, 7, 8).and_hms_nano(9, 10, 11, 12_000_000));
192 let dt = FixedOffset::east(9*3600).ymd(2014, 11, 28).and_hms_nano(21, 45, 59, 324310806);
206 assert_eq!(dt.with_timezone(&Utc), Utc.ymd(2014, 11, 28).and_hms_nano(12, 45, 59, 324310806));
262 let dt_nano = Utc.ymd(2014, 11, 28).and_hms_nano(12, 0, 9, 1);