|
Represents a timestamp for an asset. More...
#include <timestamp.h>
Public Member Functions | |
ArTimestamp () | |
Create an invalid timestamp. | |
ArTimestamp (double time) | |
Create a timestamp at time , which must be a Unix time value. | |
bool | IsValid () const |
Return true if this timestamp is valid, false otherwise. | |
double | GetTime () const |
Return the time represented by this timestamp as a double. | |
Friends | |
template<class HashState > | |
void | TfHashAppend (HashState &h, const ArTimestamp &t) |
bool | operator== (const ArTimestamp &lhs, const ArTimestamp &rhs) |
Comparison operators Note that invalid timestamps are considered less than all other timestamps. | |
bool | operator!= (const ArTimestamp &lhs, const ArTimestamp &rhs) |
bool | operator< (const ArTimestamp &lhs, const ArTimestamp &rhs) |
bool | operator>= (const ArTimestamp &lhs, const ArTimestamp &rhs) |
bool | operator<= (const ArTimestamp &lhs, const ArTimestamp &rhs) |
bool | operator> (const ArTimestamp &lhs, const ArTimestamp &rhs) |
Represents a timestamp for an asset.
Timestamps are represented by Unix time, the number of seconds elapsed since 00:00:00 UTC 1/1/1970.
Definition at line 25 of file timestamp.h.
|
inline |
Create an invalid timestamp.
Definition at line 29 of file timestamp.h.
|
inlineexplicit |
Create a timestamp at time
, which must be a Unix time value.
Definition at line 35 of file timestamp.h.
|
inline |
Return the time represented by this timestamp as a double.
If this timestamp is invalid, issue a coding error and return a quiet NaN value.
Definition at line 49 of file timestamp.h.
|
inline |
Return true if this timestamp is valid, false otherwise.
Definition at line 41 of file timestamp.h.
|
friend |
Definition at line 68 of file timestamp.h.
|
friend |
Definition at line 73 of file timestamp.h.
|
friend |
Definition at line 84 of file timestamp.h.
|
friend |
Comparison operators Note that invalid timestamps are considered less than all other timestamps.
Definition at line 62 of file timestamp.h.
|
friend |
Definition at line 89 of file timestamp.h.
|
friend |
Definition at line 79 of file timestamp.h.
|
friend |
Definition at line 102 of file timestamp.h.