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
 
TimePointTzBaseoperator= (const TimePointTzBase &other)
 
TimePointTzBaseoperator= (TimePointTzBase &&other) noexcept
 
 operator TimePoint () const
 
std::chrono::seconds GetTzOffset () const
 Get timezone in seconds (may be negative)
 
TimePoint GetTimePoint () const
 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]

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

Definition at line 21 of file timepoint_tz.hpp.

◆ TimePointTzBase() [2/2]

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

Definition at line 22 of file timepoint_tz.hpp.


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