KMIME Library
Go to the documentation of this file.
47 #ifndef __KMIME_DATEFORMATTER_H__
48 #define __KMIME_DATEFORMATTER_H__
51 #include <QtCore/QDateTime>
52 #include <QtCore/QString>
53 #include "kmime_export.h"
102 FormatType format()
const;
111 void setFormat( FormatType ftype );
125 QString dateString( time_t t,
const QString &lang=QString(),
126 bool shortFormat=
true,
bool includeSecs=
false )
const;
140 QString dateString(
const QDateTime &dtime,
const QString &lang=QString(),
141 bool shortFormat=
true,
bool includeSecs=
false )
const;
153 void setCustomFormat(
const QString &format );
160 QString customFormat()
const;
185 const QString &data=QString(),
186 bool shortFormat=
true,
187 bool includeSecs=
false );
204 const QString &data=QString(),
205 bool shortFormat=
true,
206 bool includeSecs=
false );
211 static bool isDaylight();
220 QString fancy( time_t t )
const ;
231 QString localized( time_t t,
bool shortFormat=
true,
232 bool includeSecs=
false,
233 const QString &lang=QString() )
const;
241 QString cTime( time_t t )
const;
249 QString isoDate( time_t t )
const;
257 QString rfc2822( time_t t )
const;
265 QString custom( time_t t )
const;
273 QByteArray zone( time_t t )
const;
281 time_t qdateToTimeT(
const QDateTime &dt )
const;
286 mutable time_t mTodayOneSecondBeforeMidnight;
287 mutable QDateTime mUnused;
288 QString mCustomFormat;
289 static int mDaylight;
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:00:11 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.