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)
23 : tp_(tp), tz_offset_(tz_offset) {}
32 operator TimePoint()
const;
52 std::chrono::seconds tz_offset_{};
71 explicit TimePointTz(
const std::string& timestring);
74logging::LogHelper& operator<<(
logging::LogHelper& os,
const TimePointTz& v);
80 explicit TimePointTzIsoBasic(
const std::string& timestring);
84 const TimePointTzIsoBasic& v);