kabc
#include <timezone.h>
Public Member Functions | |
TimeZone () | |
TimeZone (int offset) | |
TimeZone (const TimeZone &other) | |
~TimeZone () | |
bool | isValid () const |
int | offset () const |
bool | operator!= (const TimeZone &) const |
TimeZone & | operator= (const TimeZone &other) |
bool | operator== (const TimeZone &) const |
void | setOffset (int offset) |
QString | toString () const |
Friends | |
QDataStream & | operator<< (QDataStream &, const TimeZone &) |
QDataStream & | operator>> (QDataStream &, TimeZone &) |
Detailed Description
Time zone information.
This class stores information about a time zone.
Definition at line 35 of file timezone.h.
Constructor & Destructor Documentation
TimeZone::TimeZone | ( | ) |
Construct invalid time zone.
Definition at line 47 of file timezone.cpp.
TimeZone::TimeZone | ( | int | offset | ) |
Construct time zone.
- Parameters
-
offset Offset in minutes relative to UTC.
Definition at line 52 of file timezone.cpp.
TimeZone::TimeZone | ( | const TimeZone & | other | ) |
Copy constructor.
Definition at line 57 of file timezone.cpp.
TimeZone::~TimeZone | ( | ) |
Destroys the time zone.
Definition at line 62 of file timezone.cpp.
Member Function Documentation
bool TimeZone::isValid | ( | ) | const |
Return, if this time zone object is valid.
Definition at line 77 of file timezone.cpp.
int TimeZone::offset | ( | ) | const |
Return offset in minutes relative to UTC.
Definition at line 72 of file timezone.cpp.
void TimeZone::setOffset | ( | int | offset | ) |
Set time zone offset relative to UTC.
- Parameters
-
offset Offset in minutes.
Definition at line 66 of file timezone.cpp.
QString TimeZone::toString | ( | ) | const |
Return string representation of time zone offset.
Definition at line 113 of file timezone.cpp.
Friends And Related Function Documentation
|
friend |
Serializes the timezone
object into the stream
.
|
friend |
Initializes the timezone
object from the stream
.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:38:39 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.