KContacts::TimeZone
#include <timezone.h>
Public Member Functions | |
TimeZone () | |
TimeZone (const TimeZone &other) | |
TimeZone (int offset) | |
~TimeZone () | |
bool | isValid () const |
int | offset () const |
bool | operator!= (const TimeZone &other) const |
TimeZone & | operator= (const TimeZone &other) |
bool | operator== (const TimeZone &other) const |
void | setOffset (int offset) |
QString | toString () const |
Detailed Description
Time zone information.
This class stores information about a time zone.
Definition at line 22 of file timezone.h.
Constructor & Destructor Documentation
◆ TimeZone() [1/3]
TimeZone::TimeZone | ( | ) |
Construct invalid time zone.
Definition at line 35 of file timezone.cpp.
◆ TimeZone() [2/3]
TimeZone::TimeZone | ( | int | offset | ) |
Construct time zone.
- Parameters
-
offset Offset in minutes relative to UTC.
Definition at line 40 of file timezone.cpp.
◆ TimeZone() [3/3]
TimeZone::TimeZone | ( | const TimeZone & | other | ) |
Copy constructor.
Definition at line 45 of file timezone.cpp.
◆ ~TimeZone()
TimeZone::~TimeZone | ( | ) |
Destroys the time zone.
Definition at line 50 of file timezone.cpp.
Member Function Documentation
◆ isValid()
bool TimeZone::isValid | ( | ) | const |
Return, if this time zone object is valid.
Definition at line 65 of file timezone.cpp.
◆ offset()
int TimeZone::offset | ( | ) | const |
Return offset in minutes relative to UTC.
Definition at line 60 of file timezone.cpp.
◆ operator!=()
bool TimeZone::operator!= | ( | const TimeZone & | other | ) | const |
Definition at line 87 of file timezone.cpp.
◆ operator=()
Definition at line 92 of file timezone.cpp.
◆ operator==()
bool TimeZone::operator== | ( | const TimeZone & | other | ) | const |
Definition at line 70 of file timezone.cpp.
◆ setOffset()
void TimeZone::setOffset | ( | int | offset | ) |
Set time zone offset relative to UTC.
- Parameters
-
offset Offset in minutes.
Definition at line 54 of file timezone.cpp.
◆ toString()
QString TimeZone::toString | ( | ) | const |
Return string representation of time zone offset.
Definition at line 101 of file timezone.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:01:27 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.