KTimeZone Namespace
Timezone localization methods. More...
Header: | #include <KTimeZone> |
CMake: | find_package(KF6 REQUIRED COMPONENTS I18n) target_link_libraries(mytarget PRIVATE KF6::I18nLocaleData) |
Since: | 5.88 |
Functions
KCountry | country(const char *ianaId) |
const char * | fromLocation(float latitude, float longitude) |
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.