DateParser Class Reference
#include <dateparser.h>
Public Member Functions | |
DateParser (const TQString &pattern) | |
TQDate | parse (const TQString &dateStr) const |
Detailed Description
This class parses the date out of a given string with the help of a pattern.
The pattern can contains the following key characters: y = year (e.g. 82) Y = year (e.g. 1982) m = month (e.g. 7, 07 or 12) M = month (e.g. 07 or 12) d = day (e.g. 3, 03 or 17) D = day (e.g. 03 or 17 )
Definition at line 40 of file dateparser.h.
Constructor & Destructor Documentation
◆ DateParser()
DateParser::DateParser | ( | const TQString & | pattern | ) |
Definition at line 28 of file dateparser.cpp.
◆ ~DateParser()
DateParser::~DateParser | ( | ) |
Definition at line 33 of file dateparser.cpp.
Member Function Documentation
◆ parse()
TQDate DateParser::parse | ( | const TQString & | dateStr | ) | const |
Definition at line 37 of file dateparser.cpp.
The documentation for this class was generated from the following files: