KDECore
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:

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
Definition at line 265 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:
-
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 668 of file ksystemtimezone.cpp.
KSystemTimeZone::~KSystemTimeZone | ( | ) |
Definition at line 674 of file ksystemtimezone.cpp.
The documentation for this class was generated from the following files: