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 | |
12 | class KCountry; |
13 | |
14 | /** Timezone localization methods. |
15 | * @since 5.88 |
16 | */ |
17 | namespace KTimeZone // TODO name clash with kdelibs4support!? |
18 | { |
19 | /** Returns the timezone at the given geo coordinate. */ |
20 | KI18NLOCALEDATA_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 | */ |
27 | KI18NLOCALEDATA_EXPORT KCountry country(const char *ianaId); |
28 | |
29 | } |
30 | |
31 | #endif // KTIMEZONE_H |
32 | |