Pages
API Documentation
On this page

KTimeZone Namespace

Timezone localization methods. More...

  • Header: #include <KTimeZone>
  • CMake: find_package(KF6 REQUIRED COMPONENTS I18n)
    target_link_libraries(mytarget PRIVATE KF6::I18nLocaleData)

Detailed Description

Function Documentation

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.

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

Returns the timezone at the given geo coordinate.

We use cookies to personalize content and to analyze our traffic. Please decide if you are willing to accept cookies from our website.