oconversion.h
Go to the documentation of this file.00001 /********************************************************************** 00002 ** Copyright (C) 2000-2002 Trolltech AS. All rights reserved. 00003 ** Copyright (C) 2002-2003 by Stefan Eilers (eilers.stefan@epost.de) 00004 ** 00005 ** This file may be distributed and/or modified under the terms of the 00006 ** GNU General Public License version 2 as published by the Free Software 00007 ** Foundation and appearing in the file LICENSE.GPL included in the 00008 ** packaging of this file. 00009 ** 00010 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 00011 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 00012 ** 00013 ** See http://www.trolltech.com/gpl/ for GPL licensing information. 00014 ** 00015 ** Contact info@trolltech.com if any conditions of this licensing are 00016 ** not clear to you. 00017 **********************************************************************/ 00018 00019 #ifndef __oconversion_h__ 00020 #define __oconversion_h__ 00021 00022 /* #include <time.h> */ 00023 /* #include <sys/types.h> */ 00024 #include <qdatetime.h> 00025 00026 /* FIXME namespace? -zecke */ 00027 class OConversion 00028 { 00029 public: 00030 static QString dateToString( const QDate &d ); 00031 static QDate dateFromString( const QString &datestr ); 00032 00038 static QString dateTimeToString( const QDateTime& ); 00039 static QDateTime dateTimeFromString( const QString& ); 00040 00041 private: 00042 class Private; 00043 Private* d; 00044 00045 }; 00046 00047 #endif // __oconversion_h__ 00048
