#include </home/clem/local/src/opie/libopie2/opiepim/core/opimtimezone.h>
Collaboration diagram for Opie::OPimTimeZone:

Public Types | |
| typedef QString | ZoneName |
Public Member Functions | |
| OPimTimeZone (const ZoneName &=ZoneName::null) | |
| virtual | ~OPimTimeZone () |
| 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 OPimTimeZone &timeZone) |
| time_t | fromDateTime (const QDateTime &) |
| time_t | fromUTCDateTime (const QDateTime &) |
| QString | timeZone () const |
Static Public Member Functions | |
| static OPimTimeZone | current () |
| static OPimTimeZone | utc () |
Private Attributes | |
| ZoneName | m_name |
| Private * | d |
Definition at line 47 of file opimtimezone.h.
|
|
Definition at line 50 of file opimtimezone.h. |
|
|
Definition at line 123 of file opimtimezone.cpp. Referenced by utc(). |
|
|
Definition at line 128 of file opimtimezone.cpp. |
|
|
Definition at line 188 of file opimtimezone.cpp. References str. Referenced by Opie::OPimEvent::endDateTimeInZone(), Opie::ODateBookAccessBackend_XML::finalizeRecord(), Opie::OPimRecurrence::fromMap(), Opie::OPimEvent::fromMap(), Opie::OPimEvent::startDateTimeInZone(), toLocalDateTime(), Opie::OPimRecurrence::toMap(), and Opie::OPimEvent::toMap(). |
|
|
converts the date time into a time_t. It takes the timezone into account Definition at line 176 of file opimtimezone.cpp. References m_name, and Opie::to_Time_t(). Referenced by save(), and Opie::OPimEvent::toMap(). |
|
|
converts the datetime with timezone UTC Definition at line 182 of file opimtimezone.cpp. References Opie::to_Time_t(). |
|
|
reads the time_t into a QDateTime using UTC as timezone! Definition at line 153 of file opimtimezone.cpp. References Opie::utcTime(). Referenced by Opie::OPimRecurrence::fromMap(), and Opie::OPimTodoAccessXML::load(). |
|
|
Definition at line 132 of file opimtimezone.cpp. References QString::isEmpty(), and m_name. |
|
|
Definition at line 202 of file opimtimezone.cpp. References m_name. |
|
||||||||||||
|
converts the QDateTime from one timezone to this timeZone Definition at line 169 of file opimtimezone.cpp. References m_name, Opie::to_Time_t(), utc(), and Opie::utcTime(). |
|
|
converts the time_t to the time in the timezone Definition at line 159 of file opimtimezone.cpp. References m_name, and Opie::utcTime(). Referenced by Opie::OPimEvent::endDateTimeInZone(), Opie::ODateBookAccessBackend_XML::finalizeRecord(), Opie::OPimEvent::fromMap(), and Opie::OPimEvent::startDateTimeInZone(). |
|
|
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 141 of file opimtimezone.cpp. References current(). |
|
|
converts the QDateTime to UTC time Definition at line 147 of file opimtimezone.cpp. References utc(). |
|
|
Definition at line 196 of file opimtimezone.cpp. References OPimTimeZone(). Referenced by Opie::ODateBookAccessBackend_XML::finalizeRecord(), Opie::OPimEvent::fromMap(), Opie::OPimTodoAccessXML::load(), toDateTime(), Opie::OPimEvent::toMap(), and toUTCDateTime(). |
|
|
Definition at line 102 of file opimtimezone.h. |
|
|
Definition at line 101 of file opimtimezone.h. Referenced by fromDateTime(), isValid(), timeZone(), and toDateTime(). |
1.4.2