std::chrono::zoned_time (3) - Linux Man Pages
Defined in header <chrono>
class Duration, (since C++20)
class TimeZonePtr = const std::chrono::time_zone*
> class zoned_time;
The class zoned_time represents a logical pairing of a time zone and a std::chrono::time_point whose resolution is Duration.
An invariant of zoned_time is that it always refers to a valid time zone and represents an existing and unambiguous time point in that time zone. Consistent with this invariant, zoned_time has no move constructor or move assignment operator; attempts to move a zoned_time will perform a copy.
The program is ill-formed if Duration is not a specialization of std::chrono::duration.
The template parameter TimeZonePtr allows users to supply their own time zone pointer types and further customize the behavior of zoned_time via std::chrono::zoned_traits. Custom time zone types need not support all the operations supported by std::chrono::time_zone, only those used by the functions actually called on the zoned_time.
TimeZonePtr must be MoveConstructible. Move-only TimeZonePtrs are allowed but difficult to use, as the zoned_time will be immovable and it is not possible to access the stored TimeZonePtr.
Member type Definition
duration std::common_type_t<Duration, std::chrono::seconds>
constructor (public member function)
operator= (public member function)
get_time_zone (public member function)
operator_local_time (public member function)
operator_sys_time (public member function)
get_info (public member function)
operator== (function template)
operator<< (function template)
to_stream (function template)