Diffstat (limited to 'libopie2/opiepim/core/oconversion.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie2/opiepim/core/oconversion.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/libopie2/opiepim/core/oconversion.h b/libopie2/opiepim/core/oconversion.h index 6540889..13367e1 100644 --- a/libopie2/opiepim/core/oconversion.h +++ b/libopie2/opiepim/core/oconversion.h @@ -23,13 +23,20 @@ /* #include <sys/types.h> */ #include <qdatetime.h> - +/* FIXME namespace? -zecke */ class OConversion { public: static QString dateToString( const QDate &d ); static QDate dateFromString( const QString &datestr ); + /** + * simple function to store DateTime as string and read from string + * no timezone changing is done + * DDMMYYYYHHMMSS is the simple format + */ + static QString dateTimeToString( const QDateTime& ); + static QDateTime dateTimeFromString( const QString& ); }; #endif // __oconversion_h__ |