timeconversion.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef __timeconversion_h__
00022 #define __timeconversion_h__
00023
00024 #include <time.h>
00025 #include <sys/types.h>
00026 #include <qdatetime.h>
00027
00028 #include <qtopia/private/qpcglobal.h>
00029
00030 class QPC_EXPORT TimeConversion
00031 {
00032 public:
00033 static QString toString( const QDate &d );
00034 static QDate fromString( const QString &datestr );
00035
00036 static time_t toUTC( const QDateTime& dt );
00037 static QDateTime fromUTC( time_t time );
00038 static int secsTo( const QDateTime &from, const QDateTime &to );
00039
00040 static QCString toISO8601( const QDate & );
00041 static QCString toISO8601( const QDateTime & );
00042 static QDateTime fromISO8601( const QCString & );
00043 };
00044
00045 #endif // __timeconversion_h__
This file is part of the documentation for OPIE Version 1.5.5.