• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepim API Reference
  • KDE Home
  • Contact Us
 

kaddressbook

Public Member Functions | List of all members
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

DateParser::DateParser ( const QString &  pattern)
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:
  • dateparser.h
  • dateparser.cpp
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

KDE's Doxygen guidelines are available online.

kaddressbook

Skip menu "kaddressbook"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal