KDECore
KTimeZone::Phase Class Reference
#include <ktimezone.h>
Public Member Functions | |
QList< QByteArray > | abbreviations () const |
QString | comment () const |
bool | isDst () const |
bool | operator!= (const Phase &rhs) const |
Phase & | operator= (const Phase &rhs) |
bool | operator== (const Phase &rhs) const |
Phase (const Phase &rhs) | |
Phase (int utcOffset, const QList< QByteArray > &abbreviations, bool dst, const QString &comment=QString()) | |
Phase (int utcOffset, const QByteArray &abbreviations, bool dst, const QString &comment=QString()) | |
Phase () | |
int | utcOffset () const |
~Phase () |
Detailed Description
Definition at line 428 of file ktimezone.h.
Constructor & Destructor Documentation
KTimeZone::Phase::Phase | ( | ) |
Definition at line 165 of file ktimezone.cpp.
KTimeZone::Phase::Phase | ( | int | utcOffset, | |
const QByteArray & | abbreviations, | |||
bool | dst, | |||
const QString & | comment = QString() | |||
) |
Constructor.
- Parameters:
-
utcOffset number of seconds to add to UTC to get local time in this phase abbreviations time zone abbreviation for this phase. If translations exist, concatenate all abbreviations as null-terminated strings. dst true if daylight savings time, false if standard time comment optional comment
Definition at line 170 of file ktimezone.cpp.
KTimeZone::Phase::Phase | ( | int | utcOffset, | |
const QList< QByteArray > & | abbreviations, | |||
bool | dst, | |||
const QString & | comment = QString() | |||
) |
Constructor.
- Parameters:
-
utcOffset number of seconds to add to UTC to get local time in this phase abbreviations time zone abbreviation for this phase, plus any translations dst true if daylight savings time, false if standard time comment optional comment
Definition at line 178 of file ktimezone.cpp.
KTimeZone::Phase::Phase | ( | const Phase & | rhs | ) |
Definition at line 191 of file ktimezone.cpp.
KTimeZone::Phase::~Phase | ( | ) |
Definition at line 196 of file ktimezone.cpp.
Member Function Documentation
QList< QByteArray > KTimeZone::Phase::abbreviations | ( | ) | const |
Return the time zone abbreviations which apply to this phase.
More than one abbreviation may be returned, to allow for possible translations.
- Returns:
- time zone abbreviations
Definition at line 216 of file ktimezone.cpp.
QString KTimeZone::Phase::comment | ( | ) | const |
Return the comment (if any) applying to this phase.
- Returns:
- comment
Definition at line 226 of file ktimezone.cpp.
bool KTimeZone::Phase::isDst | ( | ) | const |
Return whether daylight savings time applies during this phase.
- Returns:
- true if daylight savings are in operation, false otherwise
Definition at line 221 of file ktimezone.cpp.
Definition at line 460 of file ktimezone.h.
KTimeZone::Phase & KTimeZone::Phase::operator= | ( | const Phase & | rhs | ) |
Definition at line 200 of file ktimezone.cpp.
Definition at line 206 of file ktimezone.cpp.
int KTimeZone::Phase::utcOffset | ( | ) | const |
Return the UTC offset in seconds during this phase.
The UTC offset is the number of seconds which you must add to UTC to get local time.
- Returns:
- offset in seconds to add to UTC
Definition at line 211 of file ktimezone.cpp.
The documentation for this class was generated from the following files: