QuantLib
A free/open-source library for quantitative finance
Reference manual - version 1.5
Public Member Functions | Static Public Member Functions | List of all members
ContinuousTime Class Reference

Continous day counter. More...

#include <ql/time/daycounters/continuoustime.hpp>

+ Inheritance diagram for ContinuousTime:

Public Member Functions

 ContinuousTime (TimeUnit units)
 
- Public Member Functions inherited from DayCounter
 DayCounter ()
 
bool empty () const
 Returns whether or not the day counter is initialized.
 
std::string name () const
 Returns the name of the day counter. More...
 
BigInteger dayCount (const Date &, const Date &) const
 Returns the number of days between two dates.
 
Time yearFraction (const Date &, const Date &, const Date &refPeriodStart=Date(), const Date &refPeriodEnd=Date()) const
 Returns the period between two dates as a fraction of year.
 
Time timeFraction (const Date &, const Date &, const Date &refPeriodStart=Date(), const Date &refPeriodEnd=Date()) const
 Returns the period between two dates as a fraction of year.
 

Static Public Member Functions

static ContinuousTime perYear ()
 
static ContinuousTime perMonth ()
 
static ContinuousTime perWeek ()
 
static ContinuousTime perDay ()
 

Additional Inherited Members

- Protected Member Functions inherited from DayCounter
 DayCounter (const boost::shared_ptr< Impl > &impl)
 
- Protected Attributes inherited from DayCounter
boost::shared_ptr< Implimpl_
 

Detailed Description

Continous day counter.