kaddressbook
DateParser Class Reference
#include <dateparser.h>
Public Member Functions | |
DateParser (const QString &pattern) | |
~DateParser () | |
QDateTime | parse (const QString &dateStr) const |
Detailed Description
This class parses the datetime out of a given string with the help of a pattern.
The pattern can contain the following place holders: 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) H = hour (e.g. 12) I = minute (e.g. 56) S = second (e.g. 30)
Definition at line 41 of file dateparser.h.
Constructor & Destructor Documentation
|
explicit |
Definition at line 22 of file dateparser.cpp.
DateParser::~DateParser | ( | ) |
Definition at line 27 of file dateparser.cpp.
Member Function Documentation
QDateTime DateParser::parse | ( | const QString & | dateStr | ) | const |
Definition at line 31 of file dateparser.cpp.
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:52 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:52 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.