#include <OnixS/Senaf/MarketData/Time.h>
Definition at line 407 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 Senaf.
unsigned int hour |
( |
| ) |
const |
|
inline |
Hour component of timestamp.
Definition at line 533 of file Time.h.
unsigned int microsecond |
( |
| ) |
const |
|
inline |
Microsecond component of timestamp.
Definition at line 553 of file Time.h.
unsigned int millisecond |
( |
| ) |
const |
|
inline |
Millisecond component of timestamp.
Definition at line 548 of file Time.h.
unsigned int minute |
( |
| ) |
const |
|
inline |
Minute component of timestamp.
Definition at line 538 of file Time.h.
Month component of timestamp.
unsigned int nanosecond |
( |
| ) |
const |
|
inline |
Nanosecond component of timestamp.
Definition at line 558 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 543 of file Time.h.
Return time part of timestamp.
Returns text presentation of timestamp using specified presentation format.
Definition at line 563 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:
- include/OnixS/Senaf/MarketData/Time.h