Represents a realtime clock in milliseconds since epoch (use Realtime::now for current time) More...
#include <Time.h>
Public Member Functions | |
int64_t | getMillisecondsSinceEpoch () const |
Return given time as milliseconds since epoch. More... | |
Absolute () | |
Construct an Absolute time equal to epoch. More... | |
Absolute (int64_t milliseconds) | |
Construct an Absolute from milliseconds since epoch. More... | |
![]() | |
Absolute () | |
Construct an Absolute time equal to epoch. More... | |
Absolute (int64_t milliseconds) | |
Construct an Absolute from milliseconds since epoch. More... | |
bool | parseLocal (ParseResult &result) const |
Parses local time to a Parsed structure. More... | |
bool | parseUTC (ParseResult &result) const |
Parses UTC time to a Parsed structure. More... | |
bool | isLaterThanOrEqualTo (Absolute other) const |
Check if this Absolute time is later or equal to another Absolute time. More... | |
bool | isLaterThan (Absolute other) const |
Check if this Absolute time is lather than another Absolute time. More... | |
Milliseconds | subtractExact (Absolute other) const |
Obtains the difference between this time and the other time. More... | |
Absolute | offsetBy (Milliseconds other) const |
Offset this absolute time with a relative time in milliseconds. More... | |
Static Public Member Functions | |
static Realtime | now () |
Obtain time according to realtime clock. More... | |
Additional Inherited Members | |
![]() | |
int64_t | milliseconds |
Represents a realtime clock in milliseconds since epoch (use Realtime::now for current time)
|
inline |
Construct an Absolute time equal to epoch.
|
inline |
Construct an Absolute from milliseconds since epoch.
milliseconds | Number of milliseconds since epoch |
|
inline |
Return given time as milliseconds since epoch.
|
static |
Obtain time according to realtime clock.