# class KTimeZones

###

Module | kdecore
Namespace |
Class | KTimeZones
Inherits |

The KTimeZones class represents a time zone database which consists of a collection of individual time zone definitions.

Each individual time zone is defined in a KTimeZone instance, which provides generic support for private or system time zones. The time zones in the collection are indexed by name, which must be unique within the collection.

Different time zone sources could define the same time zone differently. (For example, a calendar file originating from another system might hold its own time zone definitions, which may not necessarily be identical to your own system's definitions.) In order to keep conflicting definitions separate, it will often be necessary when dealing with multiple time zone sources to create a separate KTimeZones instance for each source collection.

If you want to access system time zones, use the KSystemTimeZones class.

Represents a time zone database or collection Author David Jarvie <djarvie@kde.org>. Author S.R.Haque <srhaque@iee.org>.

### methods

- KTimeZones ( )

  returns ctor

- KTimeZones (a0)

  returns ctor
  Not implemented

  Argument | Type | Default
  --- | --- | ---
  a0 | KTimeZones |

- add (zone)

  returns bool

  Argument | Type | Default
  --- | --- | ---
  zone | KTimeZone |

  Adds a time zone to the collection. The time zone's name must be unique within the collection.

  zone - time zone to add Returns true if successful, false if zone's name duplicates one already in the collection

  See also remove()

- clear ( )

  returns Nothing

  Clears the collection.

  See also remove()

- remove (zone)

  returns KTimeZone

  Argument | Type | Default
  --- | --- | ---
  zone | KTimeZone |

  Removes a time zone from the collection.

  zone - time zone to remove Returns the time zone which was removed, or invalid if not found

  See also clear(), add()

- remove (name)

  returns KTimeZone

  Argument | Type | Default
  --- | --- | ---
  name | QString |

  Removes a time zone from the collection.

  name - name of time zone to remove Returns the time zone which was removed, or invalid if not found

  See also clear(), add()

- zone (name)

  returns KTimeZone

  Argument | Type | Default
  --- | --- | ---
  name | QString |

  Returns the time zone with the given name.

  name - name of time zone Returns time zone, or 0 if not found

- zones ( )

  returns KTimeZones.ZoneMap

  Returns all the time zones defined in this collection.

  Returns time zone collection