QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
Loading...
Searching...
No Matches
Classes | Namespaces | Typedefs | Enumerations | Functions
date.hpp File Reference

date- and time-related classes, typedefs and enumerations More...

#include <ql/time/period.hpp>
#include <ql/time/weekday.hpp>
#include <ql/utilities/null.hpp>
#include <cstdint>
#include <utility>
#include <functional>
#include <string>

Go to the source code of this file.

Classes

class  Date
 Concrete date class. More...
 
struct  short_date_holder
 
struct  long_date_holder
 
struct  iso_date_holder
 
struct  formatted_date_holder
 
class  Null< Date >
 
struct  hash< QuantLib::Date >
 

Namespaces

namespace  QuantLib
 
namespace  QuantLib::detail
 
namespace  QuantLib::io
 
namespace  std
 STL namespace.
 

Typedefs

typedef Integer Day
 Day number. More...
 
typedef Integer Year
 Year number. More...
 

Enumerations

enum  Month {
  January = 1 , February = 2 , March = 3 , April = 4 ,
  May = 5 , June = 6 , July = 7 , August = 8 ,
  September = 9 , October = 10 , November = 11 , December = 12 ,
  Jan = 1 , Feb = 2 , Mar = 3 , Apr = 4 ,
  Jun = 6 , Jul = 7 , Aug = 8 , Sep = 9 ,
  Oct = 10 , Nov = 11 , Dec = 12
}
 Month names. More...
 

Functions

std::ostream & operator<< (std::ostream &out, const short_date_holder &holder)
 
std::ostream & operator<< (std::ostream &out, const long_date_holder &holder)
 
std::ostream & operator<< (std::ostream &out, const iso_date_holder &holder)
 
std::ostream & operator<< (std::ostream &out, const formatted_date_holder &holder)
 
detail::short_date_holder short_date (const Date &)
 output dates in short format (mm/dd/yyyy) More...
 
detail::long_date_holder long_date (const Date &)
 output dates in long format (Month ddth, yyyy) More...
 
detail::iso_date_holder iso_date (const Date &)
 output dates in ISO format (yyyy-mm-dd) More...
 
detail::formatted_date_holder formatted_date (const Date &, const std::string &fmt)
 output dates in user defined format using boost date functionality More...
 
Date::serial_type operator- (const Date &d1, const Date &d2)
 
Time daysBetween (const Date &d1, const Date &d2)
 
bool operator== (const Date &d1, const Date &d2)
 
bool operator!= (const Date &d1, const Date &d2)
 
bool operator< (const Date &d1, const Date &d2)
 
bool operator<= (const Date &d1, const Date &d2)
 
bool operator> (const Date &d1, const Date &d2)
 
bool operator>= (const Date &d1, const Date &d2)
 

Detailed Description

date- and time-related classes, typedefs and enumerations

Definition in file date.hpp.