Timestamps related functionality.
Public Member Functions | |
Timestamp () | |
Year | year () const |
Month | month () const |
Day | day () const |
Hour | hour () const |
Minute | minute () const |
Second | second () const |
Millisecond | millisecond () const |
Microsecond | microsecond () const |
Nanosecond | nanosecond () const |
Static Public Member Functions | |
static Timestamp | getUtc () |
static Timestamp | getLocal () |
static std::string | getUtcTimestampWithMilliseconds () |
static std::string | getUtcTimestampWithNanoseconds () |
Friends | |
class | TimeManager |
Day day | ( | ) | const [inline] |
Current day of month. Valid values are 1 through 31.
static Timestamp getLocal | ( | ) | [static] |
Returns the current local time.
static Timestamp getUtc | ( | ) | [static] |
Returns the current UTC time.
Hour hour | ( | ) | const [inline] |
Current hour. Valid values are 0 through 23.
Microsecond microsecond | ( | ) | const [inline] |
Current microsecond. Valid values are 0 through 999999.
Millisecond millisecond | ( | ) | const [inline] |
Current millisecond. Valid values are 0 through 999.
Minute minute | ( | ) | const [inline] |
Current minute. Valid values are 0 through 59.
Nanosecond nanosecond | ( | ) | const [inline] |
Current nanosecond. Valid values are 0 through 999999999.
Second second | ( | ) | const [inline] |
Current second. Valid values are 0 through 59.