OnixS ICE iMpact Multicast Price Feed Handler C++ library 8.18.0
API documentation
Loading...
Searching...
No Matches
Date Class Reference

Public Member Functions

 Date ()
 Date (unsigned int year, Month month, unsigned int day)
 Date (const Date &other)
unsigned int day () const
bool operator== (const Date &other) const
bool operator!= (const Date &other) const
bool operator< (const Date &other) const
bool operator> (const Date &other) const
Dateoperator+= (TimeSpan &span)
Dateoperator-= (TimeSpan &span)
Dateoperator= (const Date &other)
std::string toString () const
void toString (std::string &) const
Public Member Functions inherited from YearMonth
 YearMonth ()
 YearMonth (unsigned int year, Month month)
 YearMonth (const YearMonth &other)
unsigned int year () const
Month month () const
bool operator== (const YearMonth &) const
bool operator!= (const YearMonth &) const
YearMonthoperator= (const YearMonth &other)
std::string toString () const
void toString (std::string &) const

Static Public Member Functions

static Date deserialize (unsigned long long)
Static Public Member Functions inherited from YearMonth
static YearMonth deserialize (unsigned long long)

Additional Inherited Members

Protected Member Functions inherited from YearMonth
 YearMonth (unsigned int, Month, const NoVerify &)

Detailed Description

Definition at line 319 of file Time.h.

Constructor & Destructor Documentation

◆ Date() [1/3]

Date ( )

Initializes as Jan 1, 0001.

◆ Date() [2/3]

Date ( unsigned int year,
Month month,
unsigned int day )

Explicit initialization.

Exceptions
exceptionif input parameters do not form valid date.

◆ Date() [3/3]

Date ( const Date & other)

Initializes as copy of other date.

Member Function Documentation

◆ day()

unsigned int day ( ) const
inline

Day component of date. Valid range of values is [01, 31].

Definition at line 376 of file Time.h.

◆ deserialize()

Date deserialize ( unsigned long long )
static

De-serializes date from its numeric presentation as it's used by ICE.

◆ operator!=()

bool operator!= ( const Date & other) const

Compares with other for inequality.

◆ operator+=()

Date & operator+= ( TimeSpan & span)

Adds time interval to the date.

◆ operator-=()

Date & operator-= ( TimeSpan & span)

Subtracts time interval from the date.

◆ operator<()

bool operator< ( const Date & other) const

Checks whether given date is less than other one.

◆ operator=()

Date & operator= ( const Date & other)

Re-initializes instance as copy of other one.

◆ operator==()

bool operator== ( const Date & other) const

Compares with other for equality.

◆ operator>()

bool operator> ( const Date & other) const

Checks whether given date is greater than other one.

◆ toString() [1/2]

std::string toString ( ) const
inline

Serializes date into YYYYMMDD presentation.

Definition at line 381 of file Time.h.

◆ toString() [2/2]

void toString ( std::string & ) const

Serializes date into YYYYMMDD presentation.