std::chrono::local_t
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)
local_t
(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)
(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_t
Defined in header
<chrono>
struct local_t {};
(since C++20)
The class local_t
is a pseudo-clock that is used as the first template argument to std::chrono::time_point to indicate that the time point represents local time with respect of a not-yet-specified time zone. local_time
supports streaming and the full set of time point arithmetic.
Time point family
Defined in namespace
std::chrono
template<class Duration>
using local_time = std::chrono::time_point <std::chrono::local_t, Duration>;
(since C++20)
using local_time = std::chrono::time_point <std::chrono::local_t, Duration>;
using local_seconds = local_time<std::chrono::seconds >;
(since C++20)
using local_days = local_time<std::chrono::days >;
(since C++20)