Searched refs:from_local_datetime (Results 1 – 14 of 14) sorted by relevance
296 .from_local_datetime( in test_round_subsecs()319 .from_local_datetime( in test_round_subsecs()339 .from_local_datetime( in test_round_leap_nanos()360 .from_local_datetime( in test_trunc_subsecs()383 .from_local_datetime( in test_trunc_subsecs()403 .from_local_datetime( in test_trunc_leap_nanos()423 .from_local_datetime( in test_duration_round()443 .from_local_datetime( in test_duration_round()456 .from_local_datetime( in test_duration_round()513 .from_local_datetime( in test_duration_round_naive()[all …]
89 self.timezone().from_local_datetime(&localdt).single() in and_time()
469 edt.from_local_datetime( in test_datetime_rfc2822()482 .from_local_datetime( in test_datetime_rfc2822()494 .from_local_datetime( in test_datetime_rfc2822()504 edt.from_local_datetime( in test_datetime_rfc2822()592 edt5.from_local_datetime( in test_datetime_rfc3339()671 .from_local_datetime( in test_rfc3339_opts()710 .from_local_datetime( in test_datetime_from_str()721 .from_local_datetime( in test_datetime_from_str()732 .from_local_datetime( in test_datetime_from_str()743 .from_local_datetime( in test_datetime_from_str()[all …]
761 .and_then(|datetime| dt.timezone().from_local_datetime(&datetime).single()) in map_local()
237 Some(dt) => self.from_local_datetime(&dt), in with_ymd_and_hms()508 fn from_local_datetime(&self, local: &NaiveDateTime) -> LocalResult<DateTime<Self>> { in from_local_datetime() method567 let local_max = offset.from_local_datetime(&NaiveDateTime::MAX); in test_fixed_offset_min_max_dates()573 let local_min = offset.from_local_datetime(&NaiveDateTime::MIN); in test_fixed_offset_min_max_dates()
36 match Local.from_local_datetime(&date.and_hms_opt(dt.hour(), 5, 1).unwrap()) { in verify_against_date_command_local()142 .from_local_datetime(&date.and_hms_opt(dt.hour(), dt.minute(), dt.second()).unwrap()) in verify_against_date_command_format_local()
70 let res = match Local.from_local_datetime(&ndt).single() { in local_from_local_datetime()
283 let from_local = Local.from_local_datetime(&now.naive_local()).unwrap(); in verify_correct_offsets()296 let from_local = Local.from_local_datetime(&distant_past.naive_local()).unwrap(); in verify_correct_offsets_distant_past()309 let from_local = Local.from_local_datetime(&distant_future.naive_local()).unwrap(); in verify_correct_offsets_distant_future()
256 if let Some(our_result) = Local.from_local_datetime(&date).earliest() { in verify_against_tz_specific_local_time_to_system_time()
636 match offset.from_local_datetime(&datetime) { in to_datetime()676 match tz.from_local_datetime(&datetime) { in to_datetime_with_timezone()1185 .from_local_datetime( in test_parsed_to_datetime()1236 .from_local_datetime( in test_parsed_to_datetime_with_timezone()1262 .from_local_datetime( in test_parsed_to_datetime_with_timezone()
855 .from_local_datetime( in test_strftime_docs()1023 .from_local_datetime( in test_parse_only_timezone_offset_permissive_no_panic()
254 let local = Local.from_local_datetime(&dt).single().unwrap(); in test_date_time_local()
1079 tz.from_local_datetime(self) in and_local_timezone()
48 * Fix `Local.from_local_datetime` method for wasm