ql/date.hpp File Reference
Detailed Description
date- and time-related classes, typedefs and enumerations
#include <ql/period.hpp>
#include <utility>
#include <functional>
Include dependency graph for date.hpp:

Namespaces | |
namespace | QuantLib |
namespace | QuantLib::detail |
namespace | QuantLib::io |
Classes | |
struct | IMM |
Main cycle of the International Money Market (a.k.a. IMM) Months. More... | |
class | Date |
Concrete date class. More... | |
Typedefs | |
typedef Integer | Day |
Day number. | |
typedef Integer | Year |
Year number. | |
Enumerations | |
enum | Weekday { Sunday = 1, Monday = 2, Tuesday = 3, Wednesday = 4, Thursday = 5, Friday = 6, Saturday = 7, Sun = 1, Mon = 2, Tue = 3, Wed = 4, Thu = 5, Fri = 6, Sat = 7 } |
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. | |
Functions | |
std::ostream & | operator<< (std::ostream &, const long_weekday_holder &) |
std::ostream & | operator<< (std::ostream &, const short_weekday_holder &) |
std::ostream & | operator<< (std::ostream &, const shortest_weekday_holder &) |
detail::long_weekday_holder | long_weekday (Weekday) |
output weekdays in long format | |
detail::short_weekday_holder | short_weekday (Weekday) |
output weekdays in short format (three letters) | |
detail::shortest_weekday_holder | shortest_weekday (Weekday) |
output weekdays in shortest format (two letters) | |
std::ostream & | operator<< (std::ostream &, const short_date_holder &) |
std::ostream & | operator<< (std::ostream &, const long_date_holder &) |
std::ostream & | operator<< (std::ostream &, const iso_date_holder &) |
detail::short_date_holder | short_date (const Date &) |
output dates in short format (mm/dd/yyyy) | |
detail::long_date_holder | long_date (const Date &) |
output dates in long format (Month ddth, yyyy) | |
detail::iso_date_holder | iso_date (const Date &) |
output dates in ISO format (yyyy-mm-dd) | |
BigInteger | 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) |
bool | operator>= (const Date &d1, const Date &d2) |