HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
NET_Time Class Reference

#include <NET_Time.h>

Public Types

using Timestamp = NET_TimePoint< std::chrono::microseconds >
 

Public Member Functions

constexpr NET_Time ()
 
constexpr bool isNull () const
 
constexpr bool isMax () const
 
constexpr bool isMin () const
 
constexpr bool operator== (const NET_Time &time) const
 
constexpr bool operator!= (const NET_Time &time) const
 
constexpr bool operator< (const NET_Time &time) const
 
constexpr bool operator> (const NET_Time &time) const
 
constexpr bool operator<= (const NET_Time &time) const
 
constexpr bool operator>= (const NET_Time &time) const
 
template<class T >
bool hasElapsed (const NET_Time &t, const T &elapse)
 
std::chrono::microseconds toDeltaSinceWindowsEpoch () const
 
time_t toTimeT () const
 
UT_StringHolder toUTCString () const
 
const Timestamptimestamp () const
 
template<>
bool hasElapsed (const NET_Time &t, const std::chrono::microseconds &us)
 

Static Public Member Functions

static constexpr Timestamp minT ()
 
static constexpr Timestamp maxT ()
 
static NET_Time max ()
 
static NET_Time min ()
 
static NET_Time fromDeltaSinceWindowsEpoch (std::chrono::microseconds t)
 
static NET_Time fromTimeT (time_t t)
 
template<typename Duration >
static NET_Time fromTimestamp (const NET_TimePoint< Duration > &tp)
 
static NET_Time now ()
 
static bool fromUTCString (const UT_StringRef &time_string, NET_Time &time)
 
static bool fromUTCStringToLocal (const UT_StringRef &time_string, NET_Time &time)
 

Detailed Description

Definition at line 36 of file NET_Time.h.

Member Typedef Documentation

using NET_Time::Timestamp = NET_TimePoint<std::chrono::microseconds>

Definition at line 39 of file NET_Time.h.

Constructor & Destructor Documentation

constexpr NET_Time::NET_Time ( )
inline

Definition at line 40 of file NET_Time.h.

Member Function Documentation

static NET_Time NET_Time::fromDeltaSinceWindowsEpoch ( std::chrono::microseconds  t)
static
template<typename Duration >
static NET_Time NET_Time::fromTimestamp ( const NET_TimePoint< Duration > &  tp)
inlinestatic

Definition at line 97 of file NET_Time.h.

static NET_Time NET_Time::fromTimeT ( time_t  t)
static
static bool NET_Time::fromUTCString ( const UT_StringRef time_string,
NET_Time time 
)
static
static bool NET_Time::fromUTCStringToLocal ( const UT_StringRef time_string,
NET_Time time 
)
static
template<class T >
bool NET_Time::hasElapsed ( const NET_Time t,
const T elapse 
)
inline

Definition at line 82 of file NET_Time.h.

template<>
bool NET_Time::hasElapsed ( const NET_Time t,
const std::chrono::microseconds &  us 
)
inline

Definition at line 120 of file NET_Time.h.

constexpr bool NET_Time::isMax ( ) const
inline

Definition at line 47 of file NET_Time.h.

constexpr bool NET_Time::isMin ( ) const
inline

Definition at line 48 of file NET_Time.h.

constexpr bool NET_Time::isNull ( ) const
inline

Definition at line 42 of file NET_Time.h.

static NET_Time NET_Time::max ( )
inlinestatic

Definition at line 54 of file NET_Time.h.

static constexpr Timestamp NET_Time::maxT ( )
inlinestatic

Definition at line 53 of file NET_Time.h.

static NET_Time NET_Time::min ( )
inlinestatic

Definition at line 55 of file NET_Time.h.

static constexpr Timestamp NET_Time::minT ( )
inlinestatic

Definition at line 49 of file NET_Time.h.

static NET_Time NET_Time::now ( )
static
constexpr bool NET_Time::operator!= ( const NET_Time time) const
inline

Definition at line 60 of file NET_Time.h.

constexpr bool NET_Time::operator< ( const NET_Time time) const
inline

Definition at line 64 of file NET_Time.h.

constexpr bool NET_Time::operator<= ( const NET_Time time) const
inline

Definition at line 72 of file NET_Time.h.

constexpr bool NET_Time::operator== ( const NET_Time time) const
inline

Definition at line 56 of file NET_Time.h.

constexpr bool NET_Time::operator> ( const NET_Time time) const
inline

Definition at line 68 of file NET_Time.h.

constexpr bool NET_Time::operator>= ( const NET_Time time) const
inline

Definition at line 76 of file NET_Time.h.

const Timestamp& NET_Time::timestamp ( ) const
inline

Definition at line 111 of file NET_Time.h.

std::chrono::microseconds NET_Time::toDeltaSinceWindowsEpoch ( ) const
time_t NET_Time::toTimeT ( ) const
UT_StringHolder NET_Time::toUTCString ( ) const

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