Period Class Reference
[Date and time calculations]

#include <ql/date.hpp>

List of all members.


Detailed Description

Time period described by a number of a given time unit.
Examples:

BermudanSwaption.cpp.


Public Member Functions

 Period (Integer n, TimeUnit units)
Integer length () const
TimeUnit units () const

Related Functions

(Note that these are not member functions.)

Period operator * (Integer n, TimeUnit units)
Period operator * (TimeUnit units, Integer n)
bool operator< (const Period &, const Period &)
bool operator== (const Period &, const Period &)
bool operator!= (const Period &, const Period &)
bool operator> (const Period &, const Period &)
bool operator<= (const Period &, const Period &)
bool operator>= (const Period &, const Period &)
std::ostream & operator<< (std::ostream &, const Period &)