#include </home/clem/local/src/opie/noncore/unsupported/libopie/pim/otimezone.h>
Collaboration diagram for OTimeZone:

Public Types | |
| typedef QString | ZoneName |
Public Member Functions | |
| OTimeZone (const ZoneName &=ZoneName::null) | |
| virtual | ~OTimeZone () |
| bool | isValid () const |
| QDateTime | toLocalDateTime (const QDateTime &dt) |
| QDateTime | toUTCDateTime (const QDateTime &dt) |
| QDateTime | fromUTCDateTime (time_t) |
| QDateTime | toDateTime (time_t) |
| QDateTime | toDateTime (const QDateTime &, const OTimeZone &timeZone) |
| time_t | fromDateTime (const QDateTime &) |
| time_t | fromUTCDateTime (const QDateTime &) |
| QString | timeZone () const |
Static Public Member Functions | |
| static OTimeZone | current () |
| static OTimeZone | utc () |
Private Attributes | |
| ZoneName | m_name |
| Private * | d |
Definition at line 13 of file otimezone.h.
|
|
Definition at line 15 of file otimezone.h. |
|
|
Definition at line 62 of file otimezone.cpp. Referenced by utc(). |
|
|
Definition at line 65 of file otimezone.cpp. |
|
|
Definition at line 103 of file otimezone.cpp. References str. Referenced by OEvent::endDateTimeInZone(), ODateBookAccessBackend_XML::finalizeRecord(), OEvent::fromMap(), save(), OEvent::startDateTimeInZone(), toLocalDateTime(), and OEvent::toMap(). |
|
|
converts the date time into a time_t. It takes the timezone into account Definition at line 97 of file otimezone.cpp. References m_name, and Opie::to_Time_t(). |
|
|
converts the datetime with timezone UTC Definition at line 100 of file otimezone.cpp. References Opie::to_Time_t(). |
|
|
reads the time_t into a QDateTime using UTC as timezone! Definition at line 82 of file otimezone.cpp. References Opie::utcTime(). Referenced by ODateBookAccessBackend_XML::finalizeRecord(), ORecur::fromMap(), OEvent::fromMap(), OTodoAccessXML::load(), save(), and OEvent::toMap(). |
|
|
Definition at line 68 of file otimezone.cpp. References QString::isEmpty(), and m_name. |
|
|
Definition at line 111 of file otimezone.cpp. References m_name. |
|
||||||||||||
|
converts the QDateTime from one timezone to this timeZone Definition at line 92 of file otimezone.cpp. References QString::latin1(), m_name, qWarning(), Opie::to_Time_t(), utc(), and Opie::utcTime(). |
|
|
converts the time_t to the time in the timezone Definition at line 85 of file otimezone.cpp. References m_name, and Opie::utcTime(). Referenced by OEvent::endDateTimeInZone(), ODateBookAccessBackend_XML::finalizeRecord(), OEvent::fromMap(), save(), OEvent::startDateTimeInZone(), and OEvent::toMap(). |
|
|
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. Definition at line 76 of file otimezone.cpp. References current(). |
|
|
converts the QDateTime to UTC time Definition at line 79 of file otimezone.cpp. References utc(). |
|
|
Definition at line 108 of file otimezone.cpp. References OTimeZone(). Referenced by ODateBookAccessBackend_XML::finalizeRecord(), ORecur::fromMap(), OEvent::fromMap(), OTodoAccessXML::load(), save(), toDateTime(), ORecur::toMap(), OEvent::toMap(), and toUTCDateTime(). |
|
|
Definition at line 66 of file otimezone.h. |
|
|
Definition at line 65 of file otimezone.h. Referenced by fromDateTime(), isValid(), timeZone(), and toDateTime(). |
1.4.2