KI18n

ktimezone.h
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/** Timezone localization methods.
15 * @since 5.88
16 */
17namespace KTimeZone // TODO name clash with kdelibs4support!?
18{
19/** Returns the timezone at the given geo coordinate. */
20KI18NLOCALEDATA_EXPORT const char *fromLocation(float latitude, float longitude);
21
22/** Returns the country a timezone is in.
23 * This only returns a country if the timezone covers exactly one country
24 * (but not necessarily the entire country).
25 * For obtaining any country covered by a timezone, see QTimeZone::territory.
26 */
27KI18NLOCALEDATA_EXPORT KCountry country(const char *ianaId);
28
29}
30
31#endif // KTIMEZONE_H
Information about an ISO 3166-1 country.
Definition kcountry.h:40
Timezone localization methods.
Definition kcountry.h:20
KI18NLOCALEDATA_EXPORT const char * fromLocation(float latitude, float longitude)
Returns the timezone at the given geo coordinate.
Definition ktimezone.cpp:16
KI18NLOCALEDATA_EXPORT KCountry country(const char *)
Returns the country a timezone is in.
Definition ktimezone.cpp:22
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:05:34 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.