KContacts::TimeZone Class
class KContacts::TimeZoneTime zone information. More...
Header: | #include <KContacts/TimeZone> |
CMake: | find_package(KF6 REQUIRED COMPONENTS Contacts) target_link_libraries(mytarget PRIVATE KF6::Contacts) |
Public Functions
TimeZone() | |
TimeZone(int offset) | |
bool | isValid() const |
int | offset() const |
void | setOffset(int offset) |
QString | toString() const |
bool | operator!=(const KContacts::TimeZone &other) const |
bool | operator==(const KContacts::TimeZone &other) const |
Related Non-Members
QDataStream & | operator<<(QDataStream &stream, const KContacts::TimeZone &timeZone) |
QDataStream & | operator>>(QDataStream &stream, KContacts::TimeZone &timeZone) |
Detailed Description
This class stores information about a time zone.
Member Function Documentation
TimeZone::TimeZone()
Construct invalid time zone.
TimeZone::TimeZone(int offset)
Construct time zone.
offset Offset in minutes relative to UTC.
bool TimeZone::isValid() const
Return, if this time zone object is valid.
int TimeZone::offset() const
Return offset in minutes relative to UTC.
See also setOffset().
void TimeZone::setOffset(int offset)
Set time zone offset relative to UTC.
offset Offset in minutes.
See also offset().
QString TimeZone::toString() const
Return string representation of time zone offset.
bool TimeZone::operator!=(const KContacts::TimeZone &other) const
bool TimeZone::operator==(const KContacts::TimeZone &other) const
Related Non-Members
QDataStream &operator<<(QDataStream &stream, const KContacts::TimeZone &timeZone)
Serializes the timeZone object into the stream.
QDataStream &operator>>(QDataStream &stream, KContacts::TimeZone &timeZone)
Initializes the timeZone object from the stream.