QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
Loading...
Searching...
No Matches
Namespaces | Functions
period.cpp File Reference
#include <ql/time/period.hpp>
#include <ql/errors.hpp>

Go to the source code of this file.

Namespaces

namespace  QuantLib
 
namespace  QuantLib::detail
 
namespace  QuantLib::io
 

Functions

Real years (const Period &p)
 
Real months (const Period &p)
 
Real weeks (const Period &p)
 
Real days (const Period &p)
 
bool operator< (const Period &p1, const Period &p2)
 
Period operator+ (const Period &p1, const Period &p2)
 
Period operator- (const Period &p1, const Period &p2)
 
Period operator/ (const Period &p, Integer n)
 
std::ostream & operator<< (std::ostream &out, const Period &p)
 
std::ostream & operator<< (std::ostream &out, const long_period_holder &holder)
 
std::ostream & operator<< (std::ostream &out, const short_period_holder &holder)
 
detail::long_period_holder long_period (const Period &)
 output periods in long format (e.g. "2 weeks") More...
 
detail::short_period_holder short_period (const Period &)
 output periods in short format (e.g. "2w") More...