Definition at line 89 of file Timestamp.h.
◆ Timestamp() [1/3]
Initializes as Jan 1, 0001, 00:00:00.
◆ Timestamp() [2/3]
Timestamp |
( |
unsigned int | year, |
|
|
Month::Enum | month, |
|
|
unsigned int | day, |
|
|
unsigned int | hour = 0, |
|
|
unsigned int | minute = 0, |
|
|
unsigned int | second = 0, |
|
|
unsigned int | nanosecond = 0 ) |
Initializes date-time from all details.
◆ Timestamp() [3/3]
Initializes date-time from raw presentation provided by the exchange 4 most significant bytes – seconds since Epoch 4 least significant bytes – nanoseconds within second
◆ date()
Returns date part of timestamp.
◆ day()
unsigned int day |
( |
| ) |
const |
day of month component of timestamp Valid values are 1 through 31.
◆ epoch()
◆ hour()
unsigned int hour |
( |
| ) |
const |
Hour component of timestamp. Valid values are 0 through 23.
◆ microsecond()
unsigned int microsecond |
( |
| ) |
const |
|
inline |
Microsecond component of timestamp Valid values are 0 through 999999.
Definition at line 226 of file Timestamp.h.
◆ millisecond()
unsigned int millisecond |
( |
| ) |
const |
|
inline |
Millisecond component of timestamp Valid values are 0 through 999.
Definition at line 219 of file Timestamp.h.
◆ minute()
unsigned int minute |
( |
| ) |
const |
Minute component of timestamp Valid values are 0 through 59.
◆ month()
Month component of timestamp.
◆ nanosecond()
unsigned int nanosecond |
( |
| ) |
const |
|
inline |
Nanosecond component of timestamp Valid values are 0 through 999999999.
Definition at line 233 of file Timestamp.h.
◆ now()
Returns the current local time.
- Note
- Timestamp resolution depends on capabilities of an operating system.
◆ operator!=()
Compares instance with another one.
◆ operator<()
Tests whether instance is less than another one.
◆ operator==()
Compares instance with another one.
◆ parse() [1/2]
Parses timestamp from its text presentation assuming it's in specified format ("YYYYMMDD-HH:MM:SS.sssssssss" by default).
◆ parse() [2/2]
Parses timestamp from its numeric presentation.
◆ second()
unsigned int second |
( |
| ) |
const |
Second component of timestamp Valid values are 0 through 59.
◆ sinceEpoch()
Time span since Jan 1, 0001, 00:00:00.
Definition at line 240 of file Timestamp.h.
◆ toString() [1/2]
Appends timestamp text presentation in requested format ("YYYYMMDD-HH:MM:SS.sssssssss" by default).
◆ toString() [2/2]
Returns timestamp text presentation in requested format ("YYYYMMDD-HH:MM:SS.sssssssss" by default).
Definition at line 247 of file Timestamp.h.
◆ utcNow()
Returns the current UTC time.
- Note
- Timestamp resolution depends on capabilities of an operating system.
◆ year()
Year component of timestamp.
◆ HandlerCore::Common::TimeHelper
friend struct HandlerCore::Common::TimeHelper |
|
friend |