TipsVal
Valuation library for inflation-indexed bonds
Public Member Functions | Public Attributes | List of all members
AndrewKalotayAssociates::Common::Date Struct Reference

Public Member Functions

 Date (long input_year=0, long input_month=0, long input_day=0)
 Default constructor sets year, month, date to zero.
 
long to_long () const
 
bool operator! () const
 
bool operator== (const Date &rhs) const
 
bool operator!= (const Date &rhs) const
 
bool operator< (const Date &rhs) const
 
bool is_before (const Date &rhs) const
 
bool operator> (const Date &rhs) const
 
bool operator<= (const Date &rhs) const
 
bool is_on_or_before (const Date &rhs) const
 
bool operator>= (const Date &rhs) const
 
Date add_months (int months) const
 
Date add_days (int days) const
 

Public Attributes

long year
 
long month
 
long day
 

Member Function Documentation

◆ operator!()

bool AndrewKalotayAssociates::Common::Date::operator! ( ) const
Returns
True if valid date

◆ to_long()

long AndrewKalotayAssociates::Common::Date::to_long ( ) const
Returns
Date as long in yyyymmdd format

The documentation for this struct was generated from the following file: