userver: utils::datetime::TimePointTzBase Class Reference
Loading...
Searching...
No Matches
utils::datetime::TimePointTzBase Class Reference

Detailed Description

Definition at line 16 of file timepoint_tz.hpp.

Inheritance diagram for utils::datetime::TimePointTzBase:

Public Types

using TimePoint = std::chrono::system_clock::time_point

Public Member Functions

constexpr TimePointTzBase (TimePoint tp)
constexpr TimePointTzBase (TimePoint tp, std::chrono::seconds tz_offset)
 TimePointTzBase (const TimePointTzBase &other)
 TimePointTzBase (TimePointTzBase &&other) noexcept
TimePointTzBase & operator= (const TimePointTzBase &other)
TimePointTzBase & operator= (TimePointTzBase &&other) noexcept
 operator TimePoint () const
std::chrono::seconds GetTzOffset () const noexcept
 Get timezone in seconds (may be negative).
TimePoint GetTimePoint () const noexcept
 Get std's time_point.
bool operator== (const TimePointTzBase &other) const
bool operator< (const TimePointTzBase &other) const
bool operator> (const TimePointTzBase &other) const
bool operator<= (const TimePointTzBase &other) const
bool operator>= (const TimePointTzBase &other) const

Member Typedef Documentation

◆ TimePoint

using utils::datetime::TimePointTzBase::TimePoint = std::chrono::system_clock::time_point

Definition at line 18 of file timepoint_tz.hpp.

Constructor & Destructor Documentation

◆ TimePointTzBase() [1/2]

utils::datetime::TimePointTzBase::TimePointTzBase ( TimePoint tp)
inlineexplicitconstexpr

Definition at line 21 of file timepoint_tz.hpp.

◆ TimePointTzBase() [2/2]

utils::datetime::TimePointTzBase::TimePointTzBase ( TimePoint tp,
std::chrono::seconds tz_offset )
inlineconstexpr

Definition at line 24 of file timepoint_tz.hpp.


The documentation for this class was generated from the following file: