userver: utils::datetime::TimePointTzBase Class Reference
⚠️ This is the documentation for an old userver version. Click here to switch to the latest version.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
utils::datetime::TimePointTzBase Class Reference

Detailed Description

Definition at line 15 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 17 of file timepoint_tz.hpp.

Constructor & Destructor Documentation

◆ TimePointTzBase() [1/2]

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

Definition at line 20 of file timepoint_tz.hpp.

◆ TimePointTzBase() [2/2]

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

Definition at line 21 of file timepoint_tz.hpp.


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