System time class (timestamp + UTC bias)
More...
#include <times.hpp>
System time class (timestamp + UTC bias)
◆ Time()
Time |
( |
timestamp_t | microsince1601 = 0, |
|
|
int32_t | biasminutes = 0 ) |
◆ now()
Creates time from current system time
◆ tryParse()
Result< Time > tryParse |
( |
String const & | text | ) |
|
|
static |
Creates time by parsing ISO8601 time string
◆ parse()
Time parse |
( |
String const & | text | ) |
|
|
static |
Creates time by parsing ISO8601 time string
◆ fromUnix()
Time fromUnix |
( |
int64_t | unixSeconds | ) |
|
|
static |
Creates time from an UNIX timestamp
◆ fromTimestamp()
Time fromTimestamp |
( |
gate_timestamp_t | source | ) |
|
|
static |
Creates time from GATE timestamp
◆ toDateTime()
Converts time to gregorian date-time
◆ toString() [1/2]
String toString |
( |
| ) |
const |
◆ toString() [2/2]
String toString |
( |
String const & | format | ) |
const |
Prints time as formated string
◆ toUnix()
Converts time into UNIX timestamp
◆ add()
Time add |
( |
int64_t | microseconds | ) |
const |
Adds microseconds to current time and returns new Time object
◆ diff()
int64_t diff |
( |
Time const & | t | ) |
const |
Returns difference between current and given time in microseconds
The documentation for this struct was generated from the following files: