HDK
|
#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 Timestamp & | timestamp () 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) |
Definition at line 36 of file NET_Time.h.
using NET_Time::Timestamp = NET_TimePoint<std::chrono::microseconds> |
Definition at line 39 of file NET_Time.h.
|
inline |
Definition at line 40 of file NET_Time.h.
|
static |
|
inlinestatic |
Definition at line 97 of file NET_Time.h.
|
static |
|
static |
|
static |
Definition at line 82 of file NET_Time.h.
|
inline |
Definition at line 120 of file NET_Time.h.
|
inline |
Definition at line 47 of file NET_Time.h.
|
inline |
Definition at line 48 of file NET_Time.h.
|
inline |
Definition at line 42 of file NET_Time.h.
|
inlinestatic |
Definition at line 54 of file NET_Time.h.
|
inlinestatic |
Definition at line 53 of file NET_Time.h.
|
inlinestatic |
Definition at line 55 of file NET_Time.h.
|
inlinestatic |
Definition at line 49 of file NET_Time.h.
|
static |
|
inline |
Definition at line 60 of file NET_Time.h.
|
inline |
Definition at line 64 of file NET_Time.h.
|
inline |
Definition at line 72 of file NET_Time.h.
|
inline |
Definition at line 56 of file NET_Time.h.
|
inline |
Definition at line 68 of file NET_Time.h.
|
inline |
Definition at line 76 of file NET_Time.h.
|
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 |