author | mickeyl <mickeyl> | 2004-11-16 19:14:18 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2004-11-16 19:14:18 (UTC) |
commit | ea3945a9bd8f9830f70b1efa133f9df13b19362f (patch) (side-by-side diff) | |
tree | f2ea22cc50e9aa8aa73ee7dea148f41c563c9666 /libopie/pim/otimezone.h | |
parent | 1c6f490e8541626f68422e0a3a7c7281d7f5b7d3 (diff) | |
download | opie-ea3945a9bd8f9830f70b1efa133f9df13b19362f.zip opie-ea3945a9bd8f9830f70b1efa133f9df13b19362f.tar.gz opie-ea3945a9bd8f9830f70b1efa133f9df13b19362f.tar.bz2 |
libopie1 goes into unsupported
-rw-r--r-- | libopie/pim/otimezone.h | 71 |
1 files changed, 0 insertions, 71 deletions
diff --git a/libopie/pim/otimezone.h b/libopie/pim/otimezone.h deleted file mode 100644 index bb08349..0000000 --- a/libopie/pim/otimezone.h +++ b/dev/null @@ -1,71 +0,0 @@ -#ifndef OPIE_TIME_ZONE_H -#define OPIE_TIME_ZONE_H - -#include <time.h> -#include <qdatetime.h> - -/** - * A very primitive class to convert time - * from one timezone to another - * and to localtime - * and time_t - */ -class OTimeZone { - public: - typedef QString ZoneName; - OTimeZone( const ZoneName& = ZoneName::null ); - virtual ~OTimeZone(); // just in case. - - bool isValid()const; - - /** - * converts the QDateTime to a DateTime - * in the local timezone - * if QDateTime is 25th Jan and takes place in Europe/Berlin at 12h - * and the current timezone is Europe/London the returned - * time will be 11h. - */ - QDateTime toLocalDateTime( const QDateTime& dt ); - - /** - * converts the QDateTime to UTC time - */ - QDateTime toUTCDateTime( const QDateTime& dt ); - - /** - * reads the time_t into a QDateTime using UTC as timezone! - */ - QDateTime fromUTCDateTime( time_t ); - - /** - * converts the time_t to the time in the timezone - */ - QDateTime toDateTime( time_t ); - - /** - * converts the QDateTime from one timezone to this timeZone - */ - QDateTime toDateTime( const QDateTime&, const OTimeZone& timeZone ); - - /** - * converts the date time into a time_t. It takes the timezone into account - */ - time_t fromDateTime( const QDateTime& ); - - /** - * converts the datetime with timezone UTC - */ - time_t fromUTCDateTime( const QDateTime& ); - - static OTimeZone current(); - static OTimeZone utc(); - - QString timeZone()const; - private: - ZoneName m_name; - class Private; - Private* d; -}; - - -#endif |