3#ifndef _TIME_SHIELD_ENUMS_HPP_INCLUDED
4#define _TIME_SHIELD_ENUMS_HPP_INCLUDED
44 static const char*
const uppercase_names[] = {
45 "SUN",
"MON",
"TUE",
"WED",
"THU",
"FRI",
"SAT"
47 static const char*
const short_names[] = {
48 "Sun",
"Mon",
"Tue",
"Wed",
"Thu",
"Fri",
"Sat"
50 static const char*
const full_names[] = {
51 "Sunday",
"Monday",
"Tuesday",
"Wednesday",
"Thursday",
"Friday",
"Saturday"
56 return uppercase_names[
static_cast<size_t>(value)];
58 return short_names[
static_cast<size_t>(value)];
60 return full_names[
static_cast<size_t>(value)];
71 static const std::array<std::string, 7> uppercase_names = {
72 "SUN",
"MON",
"TUE",
"WED",
"THU",
"FRI",
"SAT"
74 static const std::array<std::string, 7> short_names = {
75 "Sun",
"Mon",
"Tue",
"Wed",
"Thu",
"Fri",
"Sat"
77 static const std::array<std::string, 7> full_names = {
78 "Sunday",
"Monday",
"Tuesday",
"Wednesday",
"Thursday",
"Friday",
"Saturday"
83 return uppercase_names[
static_cast<size_t>(value)];
85 return short_names[
static_cast<size_t>(value)];
87 return full_names[
static_cast<size_t>(value)];
115 static const char*
const uppercase_names[] = {
117 "JAN",
"FEB",
"MAR",
"APR",
"MAY",
"JUN",
118 "JUL",
"AUG",
"SEP",
"OCT",
"NOV",
"DEC"
120 static const char*
const short_names[] = {
122 "Jan",
"Feb",
"Mar",
"Apr",
"May",
"Jun",
123 "Jul",
"Aug",
"Sep",
"Oct",
"Nov",
"Dec"
125 static const char*
const full_names[] = {
127 "January",
"February",
"March",
"April",
"May",
"June",
128 "July",
"August",
"September",
"October",
"November",
"December"
133 return uppercase_names[
static_cast<size_t>(value)];
135 return short_names[
static_cast<size_t>(value)];
137 return full_names[
static_cast<size_t>(value)];
148 static const std::array<std::string, 13> uppercase_names = {
150 "JAN",
"FEB",
"MAR",
"APR",
"MAY",
"JUN",
151 "JUL",
"AUG",
"SEP",
"OCT",
"NOV",
"DEC"
153 static const std::array<std::string, 13> short_names = {
155 "Jan",
"Feb",
"Mar",
"Apr",
"May",
"Jun",
156 "Jul",
"Aug",
"Sep",
"Oct",
"Nov",
"Dec"
158 static const std::array<std::string, 13> full_names = {
160 "January",
"February",
"March",
"April",
"May",
"June",
161 "July",
"August",
"September",
"October",
"November",
"December"
166 return uppercase_names[
static_cast<size_t>(value)];
168 return short_names[
static_cast<size_t>(value)];
170 return full_names[
static_cast<size_t>(value)];
212 static const char*
const uppercase_names[] = {
213 "GMT",
"UTC",
"EET",
"CET",
"WET",
"EEST",
"CEST",
"WEST",
214 "ET",
"CT",
"IST",
"MYT",
"WIB",
"WITA",
"WIT",
"KZT",
"TRT",
215 "BYT",
"SGT",
"ICT",
"PHT",
"GST",
"HKT",
"JST",
"KST",
"UNKNOWN"
217 static const char*
const short_names[] = {
218 "GMT",
"UTC",
"EET",
"CET",
"WET",
"EEST",
"CEST",
"WEST",
219 "ET",
"CT",
"IST",
"MYT",
"WIB",
"WITA",
"WIT",
"KZT",
"TRT",
220 "BYT",
"SGT",
"ICT",
"PHT",
"GST",
"HKT",
"JST",
"KST",
"Unknown"
222 static const char*
const full_names[] = {
223 "Greenwich Mean Time",
"Coordinated Universal Time",
"Eastern European Time",
224 "Central European Time",
"Western European Time",
"Eastern European Summer Time",
225 "Central European Summer Time",
"Western European Summer Time",
226 "US Eastern Time",
"US Central Time",
"India Standard Time",
227 "Malaysia Time",
"Western Indonesia Time",
"Central Indonesia Time",
228 "Eastern Indonesia Time",
"Kazakhstan Time",
"Turkey Time",
229 "Belarus Time",
"Singapore Time",
"Indochina Time",
230 "Philippine Time",
"Gulf Standard Time",
"Hong Kong Time",
231 "Japan Standard Time",
"Korea Standard Time",
"Unknown Time Zone"
236 return uppercase_names[
static_cast<size_t>(value)];
238 return short_names[
static_cast<size_t>(value)];
240 return full_names[
static_cast<size_t>(value)];
251 static const std::array<std::string, 26> uppercase_names = {
252 "GMT",
"UTC",
"EET",
"CET",
"WET",
"EEST",
"CEST",
"WEST",
253 "ET",
"CT",
"IST",
"MYT",
"WIB",
"WITA",
"WIT",
"KZT",
"TRT",
254 "BYT",
"SGT",
"ICT",
"PHT",
"GST",
"HKT",
"JST",
"KST",
"UNKNOWN"
256 static const std::array<std::string, 26> short_names = {
257 "gmt",
"utc",
"eet",
"cet",
"wet",
"eest",
"cest",
"west",
258 "et",
"ct",
"ist",
"myt",
"wib",
"wita",
"wit",
"kzt",
"trt",
259 "byt",
"sgt",
"ict",
"pht",
"gst",
"hkt",
"jst",
"kst",
"unknown"
261 static const std::array<std::string, 26> full_names = {
262 "Greenwich Mean Time",
"Coordinated Universal Time",
"Eastern European Time",
263 "Central European Time",
"Western European Time",
"Eastern European Summer Time",
264 "Central European Summer Time",
"Western European Summer Time",
265 "US Eastern Time",
"US Central Time",
"India Standard Time",
266 "Malaysia Time",
"Western Indonesia Time",
"Central Indonesia Time",
267 "Eastern Indonesia Time",
"Kazakhstan Time",
"Turkey Time",
268 "Belarus Time",
"Singapore Time",
"Indochina Time",
269 "Philippine Time",
"Gulf Standard Time",
"Hong Kong Time",
270 "Japan Standard Time",
"Korea Standard Time",
"Unknown Time Zone"
275 return uppercase_names[
static_cast<size_t>(value)];
277 return short_names[
static_cast<size_t>(value)];
279 return full_names[
static_cast<size_t>(value)];
@ UPPERCASE_NAME
Uppercase short name.
const std::string & to_str(Weekday value, FormatType format=UPPERCASE_NAME)
Converts a Weekday enum value to a string.
const char * to_cstr(Weekday value, FormatType format=UPPERCASE_NAME)
Converts a Weekday enum value to a string.
@ WAXING_GIBBOUS
Waxing Gibbous Moon.
@ FIRST_QUARTER
First Quarter Moon.
@ WANING_CRESCENT
Waning Crescent Moon.
@ WAXING_CRESCENT
Waxing Crescent Moon.
@ LAST_QUARTER
Last Quarter Moon.
@ WANING_GIBBOUS
Waning Gibbous Moon.
@ EUROPEAN_TIME
European time format (e.g., "12:30").
@ ISO8601_NO_TZ
ISO8601 format without time zone (e.g., "2024-06-06T12:30:45").
@ AMERICAN_MONTH_DAY
American date format (e.g., "06/06/2024").
@ ISO8601_WITH_TZ
ISO8601 format with time zone (e.g., "2024-06-06T12:30:45+03:00").
@ MQL5_FULL
MQL5 time format (e.g., "2024.06.06 12:30:45").
@ MQL5_DATE_ONLY
MQL5 date format (e.g., "2024.06.06").
@ MQL5_TIME_ONLY
MQL5 time format (e.g., "12:30:45").
@ AMERICAN_TIME
American time format (e.g., "12:30 PM").
@ EUROPEAN_MONTH_DAY
European date format (e.g., "06.06.2024").
@ JST
Japan Standard Time.
@ KST
Korea Standard Time.
@ EET
Eastern European Time.
@ CEST
Central European Summer Time.
@ WIT
Eastern Indonesia Time.
@ WEST
Western European Summer Time.
@ WITA
Central Indonesia Time.
@ WET
Western European Time.
@ UNKNOWN
Unknown Time Zone.
@ UTC
Coordinated Universal Time.
@ GMT
Greenwich Mean Time.
@ WIB
Western Indonesia Time.
@ EEST
Eastern European Summer Time.
@ CET
Central European Time.
@ IST
India Standard Time.
Main namespace for the Time Shield library.