KTimezones Class Reference
#include <ktimezones.h>
Detailed Description
The KTimezones class models a timezone database.It supports system timezones, and also has support for private timezone entries.
- Since:
- 3.5
- Author:
- S.R.Haque <srhaque@iee.org>.
Definition at line 292 of file ktimezones.h.
Public Types | |
typedef QMap< QString, KTimezone * > | ZoneMap |
Public Member Functions | |
const KTimezone * | local () |
const KTimezone * | zone (const QString &name) |
const ZoneMap | allZones () |
void | add (KTimezone *zone) |
Member Function Documentation
|
Add user-defined timezone to database.
Definition at line 355 of file ktimezones.cpp. |
|
Return timezone database.
Definition at line 360 of file ktimezones.cpp. |
|
Returns the local timezone. The idea of this routine is to provide a robust lookup of the local timezone. The problem is that on Unix systems, there are a variety of mechanisms for setting this information, and no real way of getting it. For example, if you set your timezone to "Europe/London", then the tzname[] maintained by tzset() typically returns { "GMT", "BST" }. The point of this routine is to actually return "Europe/London" (or rather, the corresponding KTimezone).
Definition at line 480 of file ktimezones.cpp. |
|
Returns the given timezone.
Definition at line 622 of file ktimezones.cpp. |
The documentation for this class was generated from the following files: