|
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Non-member functions | ||||
| Helper classes | ||||
Defined in header <chrono> | ||
struct local_info; | (since C++20) | |
The classlocal_info describes the result of converting astd::chrono::local_time to astd::chrono::sys_time.
first is filled out with the correctstd::chrono::sys_info, andsecond is zero-initialized.local_time is nonexistent, thenresult== local_info::nonexistent,first is filled out with thestd::chrono::sys_info that ends just prior to thelocal_time, andsecond is filled out with thestd::chrono::sys_info that begins just after thelocal_time.local_time is ambiguous, thenresult== local_info::ambiguous,first is filled out with thestd::chrono::sys_info that ends just after thelocal_time, andsecond is filled with thestd::chrono::sys_info that starts just before thelocal_time.This is a low-level data structure; typical conversions fromlocal_time tosys_time will use it implicitly rather than explicitly.
Contents |
| Name | Value |
constexpr int unique [static] | 0 (public static member constant) |
constexpr int nonexistent [static] | 1 (public static member constant) |
constexpr int ambiguous [static] | 2 (public static member constant) |
| Member object | Type |
result | int |
first,second | std::chrono::sys_info |
(C++20) | outputs alocal_info into a stream(function template)[edit] |
formatting support forlocal_info(class template specialization)[edit] |