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

KDECore

Public Member Functions

KSystemTimeZone Class Reference
Time zone classes

The KSystemTimeZone class represents a time zone in the system database. More...

#include <ksystemtimezone.h>

Inheritance diagram for KSystemTimeZone:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 KSystemTimeZone (KSystemTimeZoneSource *source, const QString &name, const QString &countryCode=QString(), float latitude=UNKNOWN, float longitude=UNKNOWN, const QString &comment=QString())
 ~KSystemTimeZone ()

Detailed Description

The KSystemTimeZone class represents a time zone in the system database.

It works in partnership with the KSystemTimeZoneSource class which reads and parses the time zone definition files.

Typically, instances are created and accessed via the KSystemTimeZones class.

Warning:
The KSystemTimeZone class uses the standard system libraries to access time zone data, and its functionality is limited to what these libraries provide. On many systems, dates earlier than 1970 are not handled, and on non-GNU systems there is no guarantee that the time zone abbreviation returned for a given date will be correct if the abbreviations applicable then were not those currently in use. Consider using KSystemTimeZones::readZone() or the KTzfileTimeZone class instead, which provide accurate information from the time zone definition files (but are likely to incur more overhead).

System time zone

See also:
KSystemTimeZones, KSystemTimeZoneSource, KSystemTimeZoneData, KTzfileTimeZone
Author:
David Jarvie <djarvie@kde.org>.

Definition at line 281 of file ksystemtimezone.h.


Constructor & Destructor Documentation

KSystemTimeZone::KSystemTimeZone ( KSystemTimeZoneSource *  source,
const QString &  name,
const QString &  countryCode = QString(),
float  latitude = UNKNOWN,
float  longitude = UNKNOWN,
const QString &  comment = QString() 
)

Creates a time zone.

Parameters:
sourcetzfile reader and parser
nametime zone's unique name
countryCodeISO 3166 2-character country code, empty if unknown
latitudein degrees (between -90 and +90), UNKNOWN if not known
longitudein degrees (between -180 and +180), UNKNOWN if not known
commentdescription of the time zone, if any

Definition at line 685 of file ksystemtimezone.cpp.

KSystemTimeZone::~KSystemTimeZone ( )

Definition at line 691 of file ksystemtimezone.cpp.


The documentation for this class was generated from the following files:
  • ksystemtimezone.h
  • ksystemtimezone.cpp

KDECore

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • 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
Generated for kdelibs by doxygen 1.7.3
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal