std::chrono::local_info
From cppreference.com
C++
Feature test macros (C++20)
Concepts library (C++20)
Metaprogramming library (C++11)
Ranges library (C++20)
Filesystem library (C++17)
Concurrency support library (C++11)
Execution control library (C++26)
Date and time library
(C++11)
(C++20)
(C++20)
(C++11)
(C++11)
(C++11)
(C++20)
(C++20)
(C++20)
(C++11)
(C++20)
(C++20)
(C++20)
(C++20)(C++20)
(C++20)(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)(C++20)
(C++20)
(C++20)
(C++20)
(C++20)(C++20)(C++20)(C++20)
(C++20)
local_info
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
std::chrono::local_info
Defined in header
<chrono>
struct local_info;
(since C++20)
The class local_info
describes the result of converting a std::chrono::local_time to a std::chrono::sys_time.
- If the result of the conversion is unique, then result == local_info::unique,
first
is filled out with the correct std::chrono::sys_info, andsecond
is zero-initialized. - If the
local_time
is nonexistent, then result == local_info::nonexistent,first
is filled out with the std::chrono::sys_info that ends just prior to thelocal_time
, andsecond
is filled out with the std::chrono::sys_info that begins just after thelocal_time
. - If the
local_time
is ambiguous, then result == local_info::ambiguous,first
is filled out with the std::chrono::sys_info that ends just after thelocal_time
, andsecond
is filled with the std::chrono::sys_info that starts just before thelocal_time
.
This is a low-level data structure; typical conversions from local_time
to sys_time
will use it implicitly rather than explicitly.
[edit] Member constants
Name
Value
constexpr int unique
[static]
(public static member constant)
constexpr int nonexistent
[static]
(public static member constant)
constexpr int ambiguous
[static]
(public static member constant)
[edit] Member objects
Member object
Type
result
int
first
, second
std::chrono::sys_info