Evo C++ Library v0.5.1
|
#include <evo/impl/systime.h>
Holds a system timestamp as native (platform specific) fields.
Public Types | |
typedef struct timeval | Fields |
Public Member Functions | |
SysNativeTimeStamp () | |
Constructor. More... | |
SysNativeTimeStamp (const SysNativeTimeStamp &src) | |
Copy constructor. More... | |
template<class DT > | |
void | convert_local_dt (DT &dt) const |
Convert current date/time to DateTime holding Local Time, including timezone offset. More... | |
template<class DT > | |
void | convert_local_dt_notz (DT &dt) const |
Convert current date/time to DateTime holding Local Time, without storing timezone offset. More... | |
template<class DT > | |
void | convert_utc_dt (DT &dt) const |
Convert current date/time to DateTime holding UTC. More... | |
int | get_msec () const |
Get current fractional second value in milliseconds. More... | |
long | get_nsec () const |
Get current fractional second value in nanoseconds. More... | |
int64 | get_unix_timestamp () const |
Get current date/time as Unix timestamp. More... | |
SysNativeTimeStamp & | operator= (const SysNativeTimeStamp &src) |
Assignment operator. More... | |
void | set () |
Set as null/invalid timestamp. More... | |
void | set_utc () |
Set to current date/time (UTC). More... | |
Public Attributes | |
struct timeval | ts |
Static Public Attributes | |
static const int | SEC_PER_MIN = 60 |
Number of seconds per minute. More... | |
typedef struct timeval Fields |
|
inline |
|
inline |
Copy constructor.
src | Source to copy |
|
inline |
|
inline |
|
inline |
|
inline |
Get current fractional second value in milliseconds.
|
inline |
Get current fractional second value in nanoseconds.
|
inline |
Get current date/time as Unix timestamp.
|
inline |
Assignment operator.
src | Source to copy |
|
inline |
Set as null/invalid timestamp.
|
inline |
Set to current date/time (UTC).
|
static |
Number of seconds per minute.
struct timeval ts |