|
|
|
Defined in header <chrono> | ||
enumclass choose{ earliest, | (since C++20) | |
The scoped enumerationchoose
can be passed to certain member functions ofstd::chrono::time_zone andstd::chrono::zoned_time to control how ambiguous or nonexistent local times should be resolved. Passingchoose::earliest
causes the earlier time point to be returned, while passingchoose::latest
causes the later time point to be returned. (For nonexistent local times, these two time points are identical.)
If achoose
is not passed and an ambiguous or nonexistent local time is encountered, astd::chrono::ambiguous_local_time orstd::chrono::nonexistent_local_time exception (as applicable) will be thrown.
constructs azoned_time (public member function of std::chrono::zoned_time<Duration,TimeZonePtr> )[edit] | |
converts alocal_time in this time zone to asys_time (public member function of std::chrono::time_zone )[edit] |