tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
local_t.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2// SPDX-FileCopyrightText: Copyright (C) 2023 Tobias Hienzsch
3
4#ifndef TETL_CHRONO_LOCAL_T_HPP
5#define TETL_CHRONO_LOCAL_T_HPP
6
7#include <etl/_chrono/duration.hpp>
8#include <etl/_chrono/time_point.hpp>
9
10namespace etl::chrono {
11
12/// The class local_t is a pseudo-clock that is used as the first
13/// template argument to etl::chrono::time_point to indicate that
14/// the time point represents local time with respect of a
15/// not-yet-specified time zone. local_time supports streaming and
16/// the full set of time point arithmetic.
17/// \ingroup chrono
18struct local_t { };
19
20/// \ingroup chrono
21template <typename Duration>
22using local_time = etl::chrono::time_point<etl::chrono::local_t, Duration>;
23
24/// \ingroup chrono
25using local_seconds = local_time<etl::chrono::seconds>;
26
27/// \ingroup chrono
28using local_days = local_time<etl::chrono::days>;
29
30} // namespace etl::chrono
31
32#endif // TETL_CHRONO_LOCAL_T_HPP
Definition abs.hpp:12
Definition adjacent_find.hpp:9
The class local_t is a pseudo-clock that is used as the first template argument to etl::chrono::time_...
Definition local_t.hpp:18
Class template time_point represents a point in time. It is implemented as if it stores a value of ty...
Definition time_point.hpp:22