#include <OnixS/FIXEngine/FIX/Timestamp.h>
|
| | Timestamp () |
| | Timestamp (TotalSeconds seconds, Nanosecond nanosecond) |
| | Timestamp (TotalSeconds seconds, Picosecond picosecond) |
| | Timestamp (Year year, Month::Enum month, Day day, Hour hour=0, Minute minute=0, Second second=0, Nanosecond nanosecond=0) |
| | Timestamp (Year year, Month::Enum month, Day day, Hour hour, Minute minute, Second second, Picosecond picosecond) |
| | Timestamp (TotalNanoseconds unixTimestampNanoseconds) |
| Year | year () const |
| Month::Enum | month () const |
| Day | day () const |
| void | date (YearMonthDay &) const |
| Hour | hour () const |
| Minute | minute () const |
| Second | second () const |
| Millisecond | millisecond () const |
| Microsecond | microsecond () const |
| Nanosecond | nanosecond () const |
| Picosecond | picosecond () const |
| TotalSeconds | totalSeconds () const |
| bool | operator== (const Timestamp &) const |
| bool | operator!= (const Timestamp &) const |
| bool | operator< (const Timestamp &) const |
| Timestamp & | operator+= (const TimeSpan &) |
| Timestamp & | operator-= (const TimeSpan &) |
| TimeSpan | operator- (const Timestamp &) |
| std::string | toString (TimestampFormat::Enum=TimestampFormat::YYYYMMDDHHMMSSNsec) const |
| void | toString (std::string &str, TimestampFormat::Enum=TimestampFormat::YYYYMMDDHHMMSSNsec) const |
| TotalNanoseconds | toUnixNanosecondTimestamp () const |
Definition at line 91 of file Timestamp.h.
◆ Timestamp() [1/6]
Constructs an uninitialized instance.
◆ Timestamp() [2/6]
Initializes from seconds and nanoseconds since Jan 1, 0001, 00:00:00.
Definition at line 237 of file Timestamp.h.
◆ Timestamp() [3/6]
Initializes from seconds and picoseconds since Jan 1, 0001, 00:00:00.
Definition at line 245 of file Timestamp.h.
◆ Timestamp() [4/6]
Initializes date-time from all details.
◆ Timestamp() [5/6]
Initializes date-time from all details.
◆ Timestamp() [6/6]
Initializes from nanoseconds since Jan 1, 1970, 00:00:00 (Unix epoch).
◆ date()
Returns the date part of the timestamp.
◆ day()
The current day of month. Valid values are 1 through 31.
◆ hour()
The current hour. Valid values are 0 through 23.
◆ local()
Returns the current local time.
- Note
- The timestamp resolution depends on capabilities of an operating system.
◆ microsecond()
The current microsecond. Valid values are 0 through 999999.
Definition at line 268 of file Timestamp.h.
◆ millisecond()
The current millisecond. Valid values are 0 through 999.
Definition at line 261 of file Timestamp.h.
◆ minute()
The current minute. Valid values are 0 through 59.
◆ month()
◆ nanosecond()
The current nanosecond. Valid values are 0 through 999999999.
Definition at line 275 of file Timestamp.h.
◆ operator!=()
Compares the instance with another one.
◆ operator+=()
Increases the instance by time span.
◆ operator-()
Calculates the time interval between two time points.
◆ operator-=()
Decreases the instance by time span.
◆ operator<()
Tests whether the instance is less than another one.
◆ operator==()
Compares the instance with another one.
◆ parse()
Parses the timestamp from its text presentation assuming it's in the specified format ("YYYYMMDD-HH:MM:SS.sssssssss" by default).
◆ parseWithoutFormat()
| Timestamp parseWithoutFormat |
( |
const std::string & | | ) |
|
|
static |
Parses the timestamp from its text presentation. The format is deduced from the string length.
◆ picosecond()
The current picosecond. Valid values are 0 through 999999999999.
Definition at line 282 of file Timestamp.h.
◆ second()
The current second. Valid values are 0 through 59.
◆ toString() [1/2]
Appends the timestamp text presentation in the requested format ("YYYYMMDD-HH:MM:SS.sssssssss" by default).
◆ toString() [2/2]
Returns the timestamp text presentation in the requested format ("YYYYMMDD-HH:MM:SS.sssssssss" by default).
Definition at line 289 of file Timestamp.h.
◆ totalSeconds()
The total number of seconds since Jan 1, 0001, 00:00:00.
Definition at line 254 of file Timestamp.h.
◆ toUnixNanosecondTimestamp()
Returns the nanosecond timestamp since the Unix epoch.
◆ utc()
Returns the current UTC time.
- Note
- The timestamp resolution depends on capabilities of an operating system.
◆ year()
◆ TimeManager