/external/rust/crates/chrono/src/ |
D | datetime.rs | 834 let utc_dt = Utc.ymd(2018, 9, 5).and_hms(23, 58, 0); in test_auto_conversion() 835 let cdt_dt = FixedOffset::west(5 * 60 * 60).ymd(2018, 9, 5).and_hms(18, 58, 0); in test_auto_conversion() 848 to_string_utc(&Utc.ymd(2014, 7, 24).and_hms(12, 34, 6)).ok(), in test_encodable_json() 853 to_string_fixed(&FixedOffset::east(3660).ymd(2014, 7, 24).and_hms(12, 34, 6)).ok(), in test_encodable_json() 857 to_string_fixed(&FixedOffset::east(3650).ymd(2014, 7, 24).and_hms(12, 34, 6)).ok(), in test_encodable_json() 880 norm(&Some(Utc.ymd(2014, 7, 24).and_hms(12, 34, 6))) in test_decodable_json() 884 norm(&Some(Utc.ymd(2014, 7, 24).and_hms(12, 34, 6))) in test_decodable_json() 889 norm(&Some(FixedOffset::east(0).ymd(2014, 7, 24).and_hms(12, 34, 6))) in test_decodable_json() 893 norm(&Some(FixedOffset::east(60 * 60 + 23 * 60).ymd(2014, 7, 24).and_hms(13, 57, 6))) in test_decodable_json() 900 Utc.ymd(2014, 7, 24).and_hms(12, 34, 6) in test_decodable_json() [all …]
|
D | round.rs | 402 let dt = Utc.ymd(1969, 12, 12).and_hms(12, 12, 12); in test_duration_round_pre_epoch() 450 let dt = Utc.ymd(1969, 12, 12).and_hms(12, 12, 12); in test_duration_trunc_pre_epoch()
|
D | lib.rs | 1468 let date = Utc.ymd(2019, 10, 28).and_hms(9, 10, 11); in test_month_enum_primitive_parse() 1472 let dt = Utc.ymd(2019, month.number_from_month(), 28).and_hms(9, 10, 11); in test_month_enum_primitive_parse()
|
D | date.rs | 82 pub fn and_hms(&self, hour: u32, min: u32, sec: u32) -> DateTime<Tz> { in and_hms() method
|
/external/rust/crates/chrono/src/naive/ |
D | datetime.rs | 1513 to_string(&NaiveDate::from_ymd(2014, 7, 24).and_hms(12, 34, 6)).ok(), in test_encodable_json() 1525 to_string(&MIN_DATE.and_hms(0, 0, 0)).ok(), in test_encodable_json() 1552 Some(NaiveDate::from_ymd(2014, 7, 24).and_hms(12, 34, 6)) in test_decodable_json() 1566 assert_eq!(from_str(r#""-262144-01-01T00:00:00""#).ok(), Some(MIN_DATE.and_hms(0, 0, 0))); in test_decodable_json() 1606 NaiveDate::from_ymd(1970, 1, 1).and_hms(0, 0, 0), in test_decodable_json_timestamp() 1611 NaiveDate::from_ymd(1969, 12, 31).and_hms(23, 59, 59), in test_decodable_json_timestamp() 2238 let expected = Test { one: Some(1), two: Some(Utc.ymd(1970, 1, 1).and_hms(0, 1, 1)) }; in test_serde_bincode_optional() 2257 let ymdhms = |y, m, d, h, n, s| NaiveDate::from_ymd(y, m, d).and_hms(h, n, s); in test_datetime_from_timestamp() 2274 let lhs = NaiveDate::from_ymd(y, m, d).and_hms(h, n, s); in test_datetime_add() 2276 result.map(|(y, m, d, h, n, s)| NaiveDate::from_ymd(y, m, d).and_hms(h, n, s)); in test_datetime_add() [all …]
|
D | date.rs | 568 pub fn and_hms(&self, hour: u32, min: u32, sec: u32) -> NaiveDateTime { in and_hms() method
|
/external/rust/crates/plotters/src/coord/ranged1d/types/ |
D | datetime.rs | 112 date.and_hms(0, 0, 0) in earliest_after_date() 124 date.and_hms(0, 0, 0) in from_date() 141 date.and_hms(0, 0, 0) in earliest_after_date() 153 date.and_hms(0, 0, 0) in from_date() 977 (Utc.ymd(1000, 1, 1).and_hms(0, 0, 0)..Utc.ymd(3000, 1, 1).and_hms(0, 0, 0)).into(); in test_datetime_long_range() 980 coord.map(&Utc.ymd(1000, 1, 1).and_hms(0, 0, 0), (0, 100)), in test_datetime_long_range() 984 coord.map(&Utc.ymd(3000, 1, 1).and_hms(0, 0, 0), (0, 100)), in test_datetime_long_range() 1010 (Utc.ymd(2019, 1, 1).and_hms(0, 0, 0)..Utc.ymd(2019, 1, 11).and_hms(0, 0, 0)).into(); in test_datetime_medium_range() 1034 (Utc.ymd(2019, 1, 1).and_hms(0, 0, 0)..Utc.ymd(2019, 1, 2).and_hms(0, 0, 0)).into(); in test_datetime_short_range() 1057 let start = Utc.ymd(2019, 1, 1).and_hms(0, 0, 0); in test_datetime_nano_range()
|
/external/rust/crates/chrono/ |
D | README.md | 157 let dt = Utc.ymd(2014, 7, 8).and_hms(9, 10, 11); // `2014-07-08T09:10:11Z` 159 assert_eq!(dt, Utc.yo(2014, 189).and_hms(9, 10, 11)); 161 assert_eq!(dt, Utc.isoywd(2014, 28, Weekday::Tue).and_hms(9, 10, 11)); 169 LocalResult::Single(Utc.ymd(2014, 7, 8).and_hms(21, 15, 33))); 214 let dt1 = Utc.ymd(2014, 11, 14).and_hms(8, 9, 10); 215 let dt2 = Utc.ymd(2014, 11, 14).and_hms(10, 9, 8); 218 assert_eq!(Utc.ymd(1970, 1, 1).and_hms(0, 0, 0) + Duration::seconds(1_000_000_000), 219 Utc.ymd(2001, 9, 9).and_hms(1, 46, 40)); 220 assert_eq!(Utc.ymd(1970, 1, 1).and_hms(0, 0, 0) - Duration::seconds(1_000_000_000), 221 Utc.ymd(1938, 4, 24).and_hms(22, 13, 20)); [all …]
|
/external/rust/crates/chrono/src/offset/ |
D | fixed.rs | 232 format!("{:?}", FixedOffset::east(86399).ymd(2012, 2, 29).and_hms(5, 6, 7)), in test_date_extreme_offset() 240 format!("{:?}", FixedOffset::west(86399).ymd(2012, 3, 4).and_hms(5, 6, 7)), in test_date_extreme_offset()
|
D | local.rs | 146 let midnight = self.from_local_datetime(&local.and_hms(0, 0, 0)); in from_local_date() 172 let midnight = self.from_utc_datetime(&utc.and_hms(0, 0, 0)); in from_utc_date()
|
/external/rust/crates/chrono/src/format/ |
D | parse.rs | 861 let dt = Utc.ymd(1994, 11, 6).and_hms(8, 49, 37); in parse_rfc850() 872 (Utc.ymd(1994, 11, 7).and_hms(8, 49, 37), "Monday, 07-Nov-94 08:49:37 GMT"), in parse_rfc850() 873 (Utc.ymd(1994, 11, 8).and_hms(8, 49, 37), "Tuesday, 08-Nov-94 08:49:37 GMT"), in parse_rfc850() 874 (Utc.ymd(1994, 11, 9).and_hms(8, 49, 37), "Wednesday, 09-Nov-94 08:49:37 GMT"), in parse_rfc850() 875 (Utc.ymd(1994, 11, 10).and_hms(8, 49, 37), "Thursday, 10-Nov-94 08:49:37 GMT"), in parse_rfc850() 876 (Utc.ymd(1994, 11, 11).and_hms(8, 49, 37), "Friday, 11-Nov-94 08:49:37 GMT"), in parse_rfc850() 877 (Utc.ymd(1994, 11, 12).and_hms(8, 49, 37), "Saturday, 12-Nov-94 08:49:37 GMT"), in parse_rfc850()
|
D | parsed.rs | 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() 1269 Ok(Utc.ymd(2014, 12, 31).and_hms(4, 26, 40)) in test_parsed_to_datetime_with_timezone() 1278 Ok(FixedOffset::east(32400).ymd(2014, 12, 31).and_hms(13, 26, 40)) in test_parsed_to_datetime_with_timezone()
|