summaryrefslogtreecommitdiff
path: root/libopie/pim/oconversion.h
Side-by-side diff
Diffstat (limited to 'libopie/pim/oconversion.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie/pim/oconversion.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/libopie/pim/oconversion.h b/libopie/pim/oconversion.h
index 6540889..13367e1 100644
--- a/libopie/pim/oconversion.h
+++ b/libopie/pim/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__