std::chrono::zoned_time (3) - Linux Manuals
std::chrono::zoned_time: std::chrono::zoned_time
Command to display std::chrono::zoned_time
manual in Linux: $ man 3 std::chrono::zoned_time
NAME
std::chrono::zoned_time - std::chrono::zoned_time
Synopsis
Defined in header <chrono>
template <
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 types
Member type Definition
duration std::common_type_t<Duration, std::chrono::seconds>
Member functions
constructs a zoned_time
constructor (public member function)
assigns value to a zoned_time
operator= (public member function)
obtains a copy of the time zone pointer
get_time_zone (public member function)
obtains the stored time point as a local_time
operator_local_time (public member function)
get_local_time
obtains the stored time point as a sys_time
operator_sys_time (public member function)
get_sys_time
obtain information about the time zone at the stored time point
get_info (public member function)
Nonmember functions
compares two zoned_time objects
operator== (function template)
operator!=
outputs a zoned_time into a stream
operator<< (function template)
outputs a zoned_time into a stream according to the provided format
to_stream (function template)
Deduction_guides
Pages related to std::chrono::zoned_time
- std::chrono::zoned_time<Duration,TimeZonePtr>::get_info (3) - std::chrono::zoned_time<Duration,TimeZonePtr>::get_info
- std::chrono::zoned_time<Duration,TimeZonePtr>::get_time_zone (3) - std::chrono::zoned_time<Duration,TimeZonePtr>::get_time_zone
- std::chrono::zoned_time<Duration,TimeZonePtr>::operator= (3) - std::chrono::zoned_time<Duration,TimeZonePtr>::operator=
- std::chrono::zoned_time<Duration,TimeZonePtr>::operatorlocal_time<duration>, (3) - std::chrono::zoned_time<Duration,TimeZonePtr>::operatorlocal_time<duration>,
- std::chrono::zoned_time<Duration,TimeZonePtr>::operatorlocal_time<duration>,std::chrono::zoned_time<Duration,TimeZonePtr>::get_local_time (3) - std::chrono::zoned_time<Duration,TimeZonePtr>::operatorlocal_time<duration>,std::chrono::zoned_time<Duration,TimeZonePtr>::get_local_time
- std::chrono::zoned_time<Duration,TimeZonePtr>::operatorsys_time<duration>, (3) - std::chrono::zoned_time<Duration,TimeZonePtr>::operatorsys_time<duration>,
- std::chrono::zoned_time<Duration,TimeZonePtr>::operatorsys_time<duration>,std::chrono::zoned_time<Duration,TimeZonePtr>::get_sys_time (3) - std::chrono::zoned_time<Duration,TimeZonePtr>::operatorsys_time<duration>,std::chrono::zoned_time<Duration,TimeZonePtr>::get_sys_time
- std::chrono::zoned_time<Duration,TimeZonePtr>::zoned_time (3) - std::chrono::zoned_time<Duration,TimeZonePtr>::zoned_time
- std::chrono::zoned_traits (3) - std::chrono::zoned_traits
- std::chrono::_V2_steady_clock (3)
- std::chrono::_V2_system_clock (3)
- std::chrono::abs(std::chrono::duration) (3) - std::chrono::abs(std::chrono::duration)
- std::chrono::ambiguous_local_time (3) - std::chrono::ambiguous_local_time
- std::chrono::ceil(std::chrono::duration) (3) - std::chrono::ceil(std::chrono::duration)
- std::chrono::ceil(std::chrono::time_point) (3) - std::chrono::ceil(std::chrono::time_point)
- std::chrono::choose (3) - std::chrono::choose
- std::chrono::clock_cast (3) - std::chrono::clock_cast
- Deductionguidesforstd::chrono::zoned_time (3) - Deductionguidesforstd::chrono::zoned_time