KTimeZone

KTimeZone Namespace Reference

Functions

KI18NLOCALEDATA_EXPORT KCountry country (const char *ianaId)
 
KI18NLOCALEDATA_EXPORT const char * fromLocation (float latitude, float longitude)
 

Detailed Description

Timezone localization methods.

Since
5.88

Function Documentation

◆ country()

KI18NLOCALEDATA_EXPORT KCountry KTimeZone::country ( const char * ianaId)

Returns the country a timezone is in.

This only returns a country if the timezone covers exactly one country (but not necessarily the entire country). For obtaining any country covered by a timezone, see QTimeZone::territory.

Definition at line 22 of file ktimezone.cpp.

◆ fromLocation()

const char * KTimeZone::fromLocation ( float latitude,
float longitude )

Returns the timezone at the given geo coordinate.

Definition at line 16 of file ktimezone.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 17 2024 11:53:36 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.