KDECore
#include <ktimezone.h>
Public Member Functions | |
Phase () | |
Phase (int utcOffset, const QByteArray &abbreviations, bool dst, const QString &comment=QString()) | |
Phase (int utcOffset, const QList< QByteArray > &abbreviations, bool dst, const QString &comment=QString()) | |
Phase (const Phase &rhs) | |
~Phase () | |
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 |
int | utcOffset () const |
Detailed Description
Definition at line 429 of file ktimezone.h.
Constructor & Destructor Documentation
KTimeZone::Phase::Phase | ( | ) |
Default constructor.
Creates a standard-time time zone phase with UTC offset 0.
Definition at line 164 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 169 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 177 of file ktimezone.cpp.
KTimeZone::Phase::Phase | ( | const Phase & | rhs | ) |
Definition at line 190 of file ktimezone.cpp.
KTimeZone::Phase::~Phase | ( | ) |
Definition at line 195 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 215 of file ktimezone.cpp.
QString KTimeZone::Phase::comment | ( | ) | const |
Return the comment (if any) applying to this phase.
- Returns
- comment
Definition at line 225 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 220 of file ktimezone.cpp.
Definition at line 465 of file ktimezone.h.
KTimeZone::Phase & KTimeZone::Phase::operator= | ( | const Phase & | rhs | ) |
Definition at line 199 of file ktimezone.cpp.
Definition at line 205 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 210 of file ktimezone.cpp.
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:22:13 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.