QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
DateParser Class Reference

#include <dataparsers.hpp>

+ Collaboration diagram for DateParser:

Static Public Member Functions

static Date parseFormatted (const std::string &str, const std::string &fmt)
 Parses a string in a used-defined format. More...
 
static Date parseISO (const std::string &str)
 

Detailed Description

Definition at line 43 of file dataparsers.hpp.

Member Function Documentation

◆ parseFormatted()

Date parseFormatted ( const std::string &  str,
const std::string &  fmt 
)
static

Parses a string in a used-defined format.

This method uses the parsing functions from Boost.Date_Time and supports the same formats.

Definition at line 90 of file dataparsers.cpp.

◆ parseISO()

Date parseISO ( const std::string &  str)
static

Definition at line 106 of file dataparsers.cpp.