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

KDECore

Public Member Functions | List of all members
KSystemTimeZoneData Class Reference
Time zone classes

#include <ksystemtimezone.h>

Inheritance diagram for KSystemTimeZoneData:
Inheritance graph
[legend]

Public Member Functions

 KSystemTimeZoneData ()
 
 KSystemTimeZoneData (const KSystemTimeZoneData &)
 
virtual ~KSystemTimeZoneData ()
 
virtual QByteArray abbreviation (const QDateTime &utcDateTime) const
 
virtual QList< QByteArray > abbreviations () const
 
virtual KTimeZoneData * clone () const
 
KSystemTimeZoneData & operator= (const KSystemTimeZoneData &)
 
virtual QList< int > utcOffsets () const
 
- Public Member Functions inherited from KTimeZoneData
 KTimeZoneData ()
 
 KTimeZoneData (const KTimeZoneData &c)
 
virtual ~KTimeZoneData ()
 
virtual bool hasTransitions () const
 
KTimeZone::LeapSeconds leapSecondChange (const QDateTime &utc) const
 
QList< KTimeZone::LeapSeconds > leapSecondChanges () const
 
KTimeZoneData & operator= (const KTimeZoneData &c)
 
QList< KTimeZone::Phase > phases () const
 
int previousUtcOffset () const
 
const KTimeZone::Transition * transition (const QDateTime &dt, const KTimeZone::Transition **secondTransition=0, bool *validTime=0) const
 
int transitionIndex (const QDateTime &dt, int *secondIndex=0, bool *validTime=0) const
 
QList< KTimeZone::Transition > transitions (const QDateTime &start=QDateTime(), const QDateTime &end=QDateTime()) const
 
QList< QDateTime > transitionTimes (const KTimeZone::Phase &phase, const QDateTime &start=QDateTime(), const QDateTime &end=QDateTime()) const
 

Additional Inherited Members

- Protected Member Functions inherited from KTimeZoneData
void setLeapSecondChanges (const QList< KTimeZone::LeapSeconds > &adjusts)
 
void setPhases (const QList< KTimeZone::Phase > &phases, const KTimeZone::Phase &previousPhase)
 
void setPhases (const QList< KTimeZone::Phase > &phases, int previousUtcOffset)
 
void setTransitions (const QList< KTimeZone::Transition > &transitions)
 

Detailed Description

Parsed system time zone data.

The parsed system time zone data returned by KSystemTimeZoneSource.

See also
KSystemTimeZoneSource, KSystemTimeZone
Author
David Jarvie djarv.nosp@m.ie@k.nosp@m.de.or.nosp@m.g.

Definition at line 492 of file ksystemtimezone.h.

Constructor & Destructor Documentation

KSystemTimeZoneData::KSystemTimeZoneData ( )

Definition at line 819 of file ksystemtimezone.cpp.

KSystemTimeZoneData::KSystemTimeZoneData ( const KSystemTimeZoneData &  rhs)

Copy constructor; no special ownership assumed.

Definition at line 823 of file ksystemtimezone.cpp.

KSystemTimeZoneData::~KSystemTimeZoneData ( )
virtual

Definition at line 830 of file ksystemtimezone.cpp.

Member Function Documentation

QByteArray KSystemTimeZoneData::abbreviation ( const QDateTime &  utcDateTime) const
virtual

Returns the time zone abbreviation current at a specified time.

Parameters
utcDateTimeUTC date/time. An error occurs if utcDateTime.timeSpec() is not Qt::UTC.
Returns
time zone abbreviation, or empty string if error
See also
abbreviations()

Reimplemented from KTimeZoneData.

Definition at line 852 of file ksystemtimezone.cpp.

QList< QByteArray > KSystemTimeZoneData::abbreviations ( ) const
virtual

Returns the complete list of time zone abbreviations.

Returns
the list of abbreviations

Reimplemented from KTimeZoneData.

Definition at line 847 of file ksystemtimezone.cpp.

KTimeZoneData * KSystemTimeZoneData::clone ( ) const
virtual

Creates a new copy of this object.

The caller is responsible for deleting the copy. Derived classes must reimplement this method to return a copy of the calling instance

Returns
copy of this instance. This is a KSystemTimeZoneData pointer.

Reimplemented from KTimeZoneData.

Definition at line 842 of file ksystemtimezone.cpp.

KSystemTimeZoneData & KSystemTimeZoneData::operator= ( const KSystemTimeZoneData &  rhs)

Assignment; no special ownership assumed.

Everything is value based.

Definition at line 835 of file ksystemtimezone.cpp.

QList< int > KSystemTimeZoneData::utcOffsets ( ) const
virtual

Returns the complete list of UTC offsets for the time zone.

For system time zones, significant processing would be required to obtain such a list, so instead an empty list is returned.

Returns
empty list

Reimplemented from KTimeZoneData.

Definition at line 888 of file ksystemtimezone.cpp.


The documentation for this class was generated from the following files:
  • ksystemtimezone.h
  • ksystemtimezone.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