1/*
2 SPDX-FileCopyrightText: 2021 Volker Krause <vkrause@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#ifndef KTIMEZONE_H
8#define KTIMEZONE_H
9
10#include "ki18nlocaledata_export.h"
11
12class KCountry;
13
14/*!
15 * \namespace KTimeZone
16 * \inmodule KI18nLocaleData
17 * \brief Timezone localization methods.
18 * \since 5.88
19 */
20namespace KTimeZone // TODO name clash with kdelibs4support!?
21{
22/*! Returns the timezone at the given geo coordinate. */
23KI18NLOCALEDATA_EXPORT const char *fromLocation(float latitude, float longitude);
24
25/*!
26 * Returns the country a timezone is in.
27 *
28 * This only returns a country if the timezone covers exactly one country
29 * (but not necessarily the entire country).
30 *
31 * For obtaining any country covered by a timezone, see QTimeZone::territory.
32 */
33KI18NLOCALEDATA_EXPORT KCountry country(const char *ianaId);
34
35}
36
37#endif // KTIMEZONE_H
38

source code of ki18n/src/localedata/ktimezone.h