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

KDECore

KSystemTimeZone Class Reference
[Time zone classes]

#include <ksystemtimezone.h>

Inheritance diagram for KSystemTimeZone:

Inheritance graph
[legend]

List of all members.


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 194 of file ksystemtimezone.h.


Public Member Functions

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

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:
source tzfile reader and parser
name time zone's unique name
countryCode ISO 3166 2-character country code, empty if unknown
latitude in degrees (between -90 and +90), UNKNOWN if not known
longitude in degrees (between -180 and +180), UNKNOWN if not known
comment description of the time zone, if any

Definition at line 574 of file ksystemtimezone.cpp.

KSystemTimeZone::~KSystemTimeZone (  ) 

Definition at line 580 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
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • KIO
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.4
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