date.hpp
Go to the documentation of this file.
int day_
This is the integer value representing number of days.
Definition: date.hpp:84
bool operator!=(const Date &d1, const Date &d2)
checks if dates are not equal
Definition: date.hpp:112
Definition: cadHoliday.cpp:3
int month_
This is the integer value representing number of months.
Definition: date.hpp:83
bool operator<(const Date &d1, const Date &d2)
checks if date d1 is earlier than d2
Definition: date.hpp:117
bool isEndOfYear() const
Checks if date is end of year.
Definition: date.cpp:322
bool operator>=(const Date &d1, const Date &d2)
checks if date d1 is not later than d2
Definition: date.hpp:132
int year_
This is the integer value representing number of years.
Definition: date.hpp:82
bool isLeapYear() const
Checks if date is in leap year.
Definition: date.cpp:304
bool operator==(const Date &d1, const Date &d2)
checks if dates are equal
Definition: date.hpp:107
bool isEndOfMonth() const
Checks if date is end of month.
Definition: date.cpp:312
std::ostream & operator<<(std::ostream &os, Frequency &f)
Overloading << operator for Frequency enumeration.
Definition: timeUnit.hpp:78
Date operator-(Date d, Tenor t)
moves date backward by a tenor
Definition: date.hpp:101
Date operator+(Date d, Tenor t)
moves date forward by a tenor
Definition: date.hpp:95
File contains definition of tenor class.
void serialize(Archive &ar, const unsigned int)
interface used by Boost serialization library
Definition: date.hpp:76
bool operator>(const Date &d1, const Date &d2)
checks if date d1 is later than d2
Definition: date.hpp:122
void moveToEndOfMonth()
Moves to end of month.
Definition: date.cpp:250
bool operator<=(const Date &d1, const Date &d2)
checks if date d1 is not earlier than d2
Definition: date.hpp:127
File contain time units and other useful enumerations.