• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

KDECore

  • KTimeZone
  • Phase
Public Member Functions | List of all members
KTimeZone::Phase Class Reference

#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
utcOffsetnumber of seconds to add to UTC to get local time in this phase
abbreviationstime zone abbreviation for this phase. If translations exist, concatenate all abbreviations as null-terminated strings.
dsttrue if daylight savings time, false if standard time
commentoptional 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
utcOffsetnumber of seconds to add to UTC to get local time in this phase
abbreviationstime zone abbreviation for this phase, plus any translations
dsttrue if daylight savings time, false if standard time
commentoptional 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.

bool KTimeZone::Phase::operator!= ( const Phase &  rhs) const
inline

Definition at line 465 of file ktimezone.h.

KTimeZone::Phase & KTimeZone::Phase::operator= ( const Phase &  rhs)

Definition at line 199 of file ktimezone.cpp.

bool KTimeZone::Phase::operator== ( const Phase &  rhs) const

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:
  • ktimezone.h
  • ktimezone.cpp
This file is part of the KDE documentation.
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.

KDECore

Skip menu "KDECore"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal