|
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Member functions | ||||
time_zone::to_sys | ||||
| Nonmember functions | ||||
template<class Duration> auto to_sys(conststd::chrono::local_time<Duration>& tp)const | (1) | (since C++20) |
template<class Duration> auto to_sys(conststd::chrono::local_time<Duration>& tp,std::chrono::choose z)const | (2) | (since C++20) |
Converts thelocal_timetp in this time zone to the correspondingsys_time.
sys_time.sys_time.time_points, those twotime_points will be the same, and thattime_point will be returned.Contents |
The UTC equivalent oftp according to the rules of this time zone.
The precision of the result is at leaststd::chrono::seconds, and will be finer if the argument has finer precision.
Ambiguous and nonexistent local times can occur as a result of time zone transitions (such as daylight saving time). For example,"2016-03-13 02:30:00" does not exist in the"America/New_York" time zone, while"2016-11-06 01:30:00" in that time zone can correspond to two UTC time points:2016-11-0605:30:00 UTC and2016-11-0606:30:00 UTC.
| This section is incomplete Reason: no example |