Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
GmtZones.hpp
Go to the documentation of this file.
1#ifndef IV_SRC_CORE_GMTZONES_HPP_
2#define IV_SRC_CORE_GMTZONES_HPP_
3
4#include "core/enums.hpp"
5
6#include <cstdint>
7#include <map>
8#include <string_view>
9
10namespace iv::time
11{
12
13struct GmtZone
14{
15 std::string_view longName;
16 std::string_view shortName;
17 std::string_view command;
18 int16_t offset;
19};
20
21static inline std::map<iv::eGmtArea, GmtZone> gmtZonesInfo {{iv::eGmtArea::P12, {"GMT+12", "+12", "GMT-12", 12}},
22 {iv::eGmtArea::P11, {"GMT+11", "+11", "GMT-11", 11}},
23 {iv::eGmtArea::P10, {"GMT+10", "+10", "GMT-10", 10}},
24 {iv::eGmtArea::P09, {"GMT+9", "+9", "GMT-9", 9}},
25 {iv::eGmtArea::P08, {"GMT+8", "+8", "GMT-8", 8}},
26 {iv::eGmtArea::P07, {"GMT+7", "+7", "GMT-7", 7}},
27 {iv::eGmtArea::P06, {"GMT+6", "+6", "GMT-6", 6}},
28 {iv::eGmtArea::P05, {"GMT+5", "+5", "GMT-5", 5}},
29 {iv::eGmtArea::P04, {"GMT+4", "+4", "GMT-4", 4}},
30 {iv::eGmtArea::P03, {"GMT+3", "+3", "GMT-3", 3}},
31 {iv::eGmtArea::P02, {"GMT+2", "+2", "GMT-2", 2}},
32 {iv::eGmtArea::P01, {"GMT+1", "+1", "GMT-1", 1}},
33 {iv::eGmtArea::P0, {"UTC", "0", "GMT", 0}},
34 {iv::eGmtArea::M01, {"GMT-1", "-1", "GMT+1", -1}},
35 {iv::eGmtArea::M02, {"GMT-2", "-2", "GMT+2", -2}},
36 {iv::eGmtArea::M03, {"GMT-3", "-3", "GMT+3", -3}},
37 {iv::eGmtArea::M04, {"GMT-4", "-4", "GMT+4", -4}},
38 {iv::eGmtArea::M05, {"GMT-5", "-5", "GMT+5", -5}},
39 {iv::eGmtArea::M06, {"GMT-6", "-6", "GMT+6", -6}},
40 {iv::eGmtArea::M07, {"GMT-7", "-7", "GMT+7", -7}},
41 {iv::eGmtArea::M08, {"GMT-8", "-8", "GMT+8", -8}},
42 {iv::eGmtArea::M09, {"GMT-9", "-9", "GMT+9", -9}},
43 {iv::eGmtArea::M10, {"GMT-10", "-10", "GMT+10", -10}},
44 {iv::eGmtArea::M11, {"GMT-11", "-11", "GMT+11", -11}}};
45
46}// namespace iv::time
47
48#endif//IV_SRC_CORE_GMTZONES_HPP_
Definition GmtZones.hpp:11
static std::map< iv::eGmtArea, GmtZone > gmtZonesInfo
Definition GmtZones.hpp:21
Definition GmtZones.hpp:14
std::string_view command
Definition GmtZones.hpp:17
std::string_view longName
Definition GmtZones.hpp:15
int16_t offset
Definition GmtZones.hpp:18
std::string_view shortName
Definition GmtZones.hpp:16