summaryrefslogtreecommitdiff
path: root/libopie2/opiepim/core/oconversion.h
Unidiff
Diffstat (limited to 'libopie2/opiepim/core/oconversion.h') (more/less context) (show whitespace changes)
-rw-r--r--libopie2/opiepim/core/oconversion.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/libopie2/opiepim/core/oconversion.h b/libopie2/opiepim/core/oconversion.h
index 3c4fdf3..eeb97e5 100644
--- a/libopie2/opiepim/core/oconversion.h
+++ b/libopie2/opiepim/core/oconversion.h
@@ -6,53 +6,52 @@
6 .>+-= 6 .>+-=
7 _;:, .> :=|. This program is free software; you can 7 _;:, .> :=|. This program is free software; you can
8.> <`_, > . <= redistribute it and/or modify it under 8.> <`_, > . <= redistribute it and/or modify it under
9:`=1 )Y*s>-.-- : the terms of the GNU Library General Public 9:`=1 )Y*s>-.-- : the terms of the GNU Library General Public
10.="- .-=="i, .._ License as published by the Free Software 10.="- .-=="i, .._ License as published by the Free Software
11 - . .-<_> .<> Foundation; either version 2 of the License, 11 - . .-<_> .<> Foundation; either version 2 of the License,
12 ._= =} : or (at your option) any later version. 12 ._= =} : or (at your option) any later version.
13 .%`+i> _;_. 13 .%`+i> _;_.
14 .i_,=:_. -<s. This program is distributed in the hope that 14 .i_,=:_. -<s. This program is distributed in the hope that
15 + . -:. = it will be useful, but WITHOUT ANY WARRANTY; 15 + . -:. = it will be useful, but WITHOUT ANY WARRANTY;
16 : .. .:, . . . without even the implied warranty of 16 : .. .:, . . . without even the implied warranty of
17 =_ + =;=|` MERCHANTABILITY or FITNESS FOR A 17 =_ + =;=|` MERCHANTABILITY or FITNESS FOR A
18 _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU 18 _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU
19..}^=.= = ; Library General Public License for more 19..}^=.= = ; Library General Public License for more
20++= -. .` .: details. 20++= -. .` .: details.
21 : = ...= . :.=- 21 : = ...= . :.=-
22 -. .:....=;==+<; You should have received a copy of the GNU 22 -. .:....=;==+<; You should have received a copy of the GNU
23 -_. . . )=. = Library General Public License along with 23 -_. . . )=. = Library General Public License along with
24 -- :-=` this library; see the file COPYING.LIB. 24 -- :-=` this library; see the file COPYING.LIB.
25 If not, write to the Free Software Foundation, 25 If not, write to the Free Software Foundation,
26 Inc., 59 Temple Place - Suite 330, 26 Inc., 59 Temple Place - Suite 330,
27 Boston, MA 02111-1307, USA. 27 Boston, MA 02111-1307, USA.
28*/ 28*/
29 29
30#ifndef __oconversion_h__ 30#ifndef OCONVERSION_H
31#define __oconversion_h__ 31#define OCONVERSION_H
32 32
33/* #include <time.h> */ 33/* QT */
34/* #include <sys/types.h> */
35#include <qdatetime.h> 34#include <qdatetime.h>
36 35
37namespace Opie { 36namespace Opie {
38 37
39class OConversion 38class OConversion
40{ 39{
41public: 40public:
42 static QString dateToString( const QDate &d ); 41 static QString dateToString( const QDate &d );
43 static QDate dateFromString( const QString &datestr ); 42 static QDate dateFromString( const QString &datestr );
44 43
45 /** 44 /**
46 * simple function to store DateTime as string and read from string 45 * simple function to store DateTime as string and read from string
47 * no timezone changing is done 46 * no timezone changing is done
48 * DDMMYYYYHHMMSS is the simple format 47 * DDMMYYYYHHMMSS is the simple format
49 */ 48 */
50 static QString dateTimeToString( const QDateTime& ); 49 static QString dateTimeToString( const QDateTime& );
51 static QDateTime dateTimeFromString( const QString& ); 50 static QDateTime dateTimeFromString( const QString& );
52 51
53private: 52private:
54 class Private; 53 class Private;
55 Private* d; 54 Private* d;
56 55
57}; 56};
58 57