QuantLib: DateInterval Class Reference

A free/open-source library for quantitative finance Reference manual - version 1.6

- Main Page
- Related Pages
- Modules
- Classes
- Examples

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions | Friends | List of all members
DateInterval Class Reference
Date and time calculations

Date interval described by a number of a given time unit. More...

`#include <ql/experimental/commodities/dateinterval.hpp>`

Inheritance diagram for DateInterval:
[legend]

## Public Member Functions
| DateInterval (const Date &startDate, const Date &endDate)
const Date & | startDate () const
const Date & | endDate () const
bool | isDateBetween (Date date, bool includeFirst=true, bool includeLast=true) const
DateInterval | intersection (const DateInterval &di) const
bool | operator== (const DateInterval &rhs) const
bool | operator!= (const DateInterval &rhs) const

## Friends
std::ostream & | operator<< (std::ostream &, const DateInterval &)

## Detailed Description

Date interval described by a number of a given time unit.