10#include <userver/logging/log_helper_fwd.hpp>
12USERVER_NAMESPACE_BEGIN
18 using TimePoint = std::chrono::system_clock::time_point;
20 constexpr TimePointTzBase() =
default;
21 constexpr explicit TimePointTzBase(TimePoint tp) : tp_(tp) {}
22 constexpr TimePointTzBase(TimePoint tp, std::chrono::seconds tz_offset) : tp_(tp), tz_offset_(tz_offset) {}
31 operator TimePoint()
const;
51 std::chrono::seconds tz_offset_{};
66 explicit TimePointTz(
const std::string& timestring);
69logging::LogHelper& operator<<(
logging::LogHelper& os,
const TimePointTz& v);
75 explicit TimePointTzIsoBasic(
const std::string& timestring);
78logging::LogHelper& operator<<(
logging::LogHelper& os,
const TimePointTzIsoBasic& v);