KDECore
#include <ktzfiletimezone.h>
Public Member Functions | |
KTzfileTimeZoneSource (const QString &location) | |
virtual | ~KTzfileTimeZoneSource () |
QString | location () const |
virtual KTimeZoneData * | parse (const KTimeZone &zone) const |
Public Member Functions inherited from KTimeZoneSource | |
KTimeZoneSource () | |
virtual | ~KTimeZoneSource () |
bool | useZoneParse () const |
Additional Inherited Members | |
Protected Member Functions inherited from KTimeZoneSource | |
KTimeZoneSource (bool useZoneParse) | |
Detailed Description
A class to read and parse tzfile time zone definition files.
tzfile is the format used by zoneinfo files in the system time zone database. The format is documented in the tzfile(5) manpage.
Reads and parses tzfile(5) time zone definition files
- See also
- KTzfileTimeZone, KTzfileTimeZoneData
Definition at line 138 of file ktzfiletimezone.h.
Constructor & Destructor Documentation
|
explicit |
Constructs a time zone source.
The directory containing the time zone definition files is given by the location
parameter, which will usually be the zoneinfo directory. For tzfile files in other locations, bear in mind that the name generated for each KTzfileTimeZone is its file path relative to location
.
- Parameters
-
location the local directory containing the time zone definition files
Definition at line 147 of file ktzfiletimezone.cpp.
|
virtual |
Definition at line 154 of file ktzfiletimezone.cpp.
Member Function Documentation
QString KTzfileTimeZoneSource::location | ( | ) | const |
Returns the local directory containing the time zone definition files.
- Returns
- path to time zone definition files
Definition at line 159 of file ktzfiletimezone.cpp.
|
virtual |
Parses a tzfile file to extract detailed information for one time zone.
- Parameters
-
zone the time zone for which data is to be extracted
- Returns
- a KTzfileTimeZoneData instance containing the parsed data. The caller is responsible for deleting the KTimeZoneData instance. Null is returned on error.
Reimplemented from KTimeZoneSource.
Definition at line 164 of file ktzfiletimezone.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:47:11 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.