#include <OnixS/Senaf/MarketData/Time.h>
Definition at line 408 of file Time.h.
◆ Timestamp() [1/5]
Initializes as Jan 1, 0001, 00:00:00.
◆ Timestamp() [2/5]
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() [3/5]
| 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.
◆ Timestamp() [4/5]
Initializes as copy of other instance.
◆ Timestamp() [5/5]
Initializes from time interval since the Epoch.
◆ date() [1/2]
Returns timestamp without time part.
◆ date() [2/2]
| void date |
( |
Date & | | ) |
const |
Returns date component of timestamp.
◆ day()
| unsigned int day |
( |
| ) |
const |
Day component of timestamp.
◆ dayOfWeek()
◆ deserialize() [1/2]
| Timestamp deserialize |
( |
const std::string & | | ) |
|
|
static |
De-serializes timestamp from text presentation.
◆ deserialize() [2/2]
De-serializes timestamp from its numeric presentation as it's used by the Senaf.
◆ hour()
| unsigned int hour |
( |
| ) |
const |
|
inline |
Hour component of timestamp.
Definition at line 533 of file Time.h.
◆ microsecond()
| unsigned int microsecond |
( |
| ) |
const |
|
inline |
Microsecond component of timestamp.
Definition at line 553 of file Time.h.
◆ millisecond()
| unsigned int millisecond |
( |
| ) |
const |
|
inline |
Millisecond component of timestamp.
Definition at line 548 of file Time.h.
◆ minute()
| unsigned int minute |
( |
| ) |
const |
|
inline |
Minute component of timestamp.
Definition at line 538 of file Time.h.
◆ month()
Month component of timestamp.
◆ nanosecond()
| unsigned int nanosecond |
( |
| ) |
const |
|
inline |
Nanosecond component of timestamp.
Definition at line 558 of file Time.h.
◆ now()
Return timestamp that is current date and time expressed as local time.
◆ operator!=()
| bool operator!= |
( |
const Timestamp & | other | ) |
const |
Compares with other instance for inequality.
◆ operator+=()
Adds time interval to given timestamp.
◆ operator-=()
Subtracts time interval from given timestamp.
◆ operator<()
| bool operator< |
( |
const Timestamp & | other | ) |
const |
Checks whether timestamp is less than other one.
◆ operator=()
Re-initializes as copy of other timestamp.
◆ operator==()
| bool operator== |
( |
const Timestamp & | other | ) |
const |
Compares with other instance for equality.
◆ operator>()
| bool operator> |
( |
const Timestamp & | other | ) |
const |
Checks whether timestamp is greater than other one.
◆ second()
| unsigned int second |
( |
| ) |
const |
|
inline |
Second component of timestamp.
Definition at line 543 of file Time.h.
◆ time()
Return time part of timestamp.
◆ toString() [1/2]
Returns text presentation of timestamp using specified presentation format.
◆ toString() [2/2]
Returns text presentation of timestamp using specified presentation format.
Definition at line 563 of file Time.h.
◆ utcNow()
Return timestamp that is current date and time expressed as UTC time.
◆ year()
| unsigned int year |
( |
| ) |
const |
Year component of timestamp.
◆ operator-
Calculates time interval between two timestamps.