#include <Time.h>
Definition at line 414 of file Time.h.
Initializes as Jan 1, 0001, 00:00:00.
Initializes as date with zero time component.
Input parameters are validated, therefore constructor throws exception if input values do not fit into their valid ranges.
Timestamp |
( |
unsigned |
year, |
|
|
Month |
month, |
|
|
unsigned |
day, |
|
|
unsigned |
hour, |
|
|
unsigned |
minute, |
|
|
unsigned |
second, |
|
|
unsigned |
nanosecond |
|
) |
| |
Explicit timestamp initialization.
Input parameters are validated, therefore constructor throws exception if input values do not fit into their valid ranges.
Initializes as copy of other instance.
Initializes from time interval since the Epoch.
Returns timestamp without time part.
void date |
( |
Date & |
| ) |
const |
Returns date component of timestamp.
unsigned int day |
( |
| ) |
const |
Day component of timestamp.
static Timestamp deserialize |
( |
const std::string & |
| ) |
|
|
static |
De-serializes timestamp from text presentation.
De-serializes timestamp from its numeric presentation as it's used by the ICE.
unsigned int hour |
( |
| ) |
const |
|
inline |
Hour component of timestamp.
Definition at line 539 of file Time.h.
unsigned int microsecond |
( |
| ) |
const |
|
inline |
Microsecond component of timestamp.
Definition at line 559 of file Time.h.
unsigned int millisecond |
( |
| ) |
const |
|
inline |
Millisecond component of timestamp.
Definition at line 554 of file Time.h.
unsigned int minute |
( |
| ) |
const |
|
inline |
Minute component of timestamp.
Definition at line 544 of file Time.h.
Month component of timestamp.
unsigned int nanosecond |
( |
| ) |
const |
|
inline |
Nanosecond component of timestamp.
Definition at line 564 of file Time.h.
Return timestamp that is current date and time expressed as local time.
bool operator!= |
( |
const Timestamp & |
other | ) |
const |
Compares with other instance for inequality.
Adds time interval to given timestamp.
Subtracts time interval from given timestamp.
bool operator< |
( |
const Timestamp & |
other | ) |
const |
Checks whether timestamp is less than other one.
Re-initializes as copy of other timestamp.
bool operator== |
( |
const Timestamp & |
other | ) |
const |
Compares with other instance for equality.
bool operator> |
( |
const Timestamp & |
other | ) |
const |
Checks whether timestamp is greater than other one.
unsigned int second |
( |
| ) |
const |
|
inline |
Second component of timestamp.
Definition at line 549 of file Time.h.
Return time part of timestamp.
Returns text presentation of timestamp using specified presentation format.
Definition at line 569 of file Time.h.
Returns text presentation of timestamp using specified presentation format.
Return timestamp that is current date and time expressed as UTC time.
unsigned int year |
( |
| ) |
const |
Year component of timestamp.
Calculates time interval between two timestamps.
The documentation for this class was generated from the following file:
- OnixS/ICE/iMpact/MarketData/Time.h