7#ifndef __TIME_SHIELD_ENUMS_MQH__
8#define __TIME_SHIELD_ENUMS_MQH__
16#property copyright "Copyright 2025, NewYaroslav"
17#property link "https://github.com/NewYaroslav/time-shield-cpp"
49 static const string uppercase_names[] = {
50 "SUN",
"MON",
"TUE",
"WED",
"THU",
"FRI",
"SAT"
52 static const string short_names[] = {
53 "Sun",
"Mon",
"Tue",
"Wed",
"Thu",
"Fri",
"Sat"
55 static const string full_names[] = {
56 "Sunday",
"Monday",
"Tuesday",
"Wednesday",
"Thursday",
"Friday",
"Saturday"
61 return uppercase_names[(int)value];
63 return short_names[(int)value];
65 return full_names[(int)value];
92 static const string uppercase_names[] = {
94 "JAN",
"FEB",
"MAR",
"APR",
"MAY",
"JUN",
95 "JUL",
"AUG",
"SEP",
"OCT",
"NOV",
"DEC"
97 static const string short_names[] = {
99 "Jan",
"Feb",
"Mar",
"Apr",
"May",
"Jun",
100 "Jul",
"Aug",
"Sep",
"Oct",
"Nov",
"Dec"
102 static const string full_names[] = {
104 "January",
"February",
"March",
"April",
"May",
"June",
105 "July",
"August",
"September",
"October",
"November",
"December"
110 return uppercase_names[(int)value];
112 return short_names[(int)value];
114 return full_names[(int)value];
155 static const string uppercase_names[] = {
156 "GMT",
"UTC",
"EET",
"CET",
"WET",
"EEST",
"CEST",
"WEST",
157 "ET",
"CT",
"IST",
"MYT",
"WIB",
"WITA",
"WIT",
"KZT",
"TRT",
158 "BYT",
"SGT",
"ICT",
"PHT",
"GST",
"HKT",
"JST",
"KST",
"UNKNOWN"
160 static const string short_names[] = {
161 "GMT",
"UTC",
"EET",
"CET",
"WET",
"EEST",
"CEST",
"WEST",
162 "ET",
"CT",
"IST",
"MYT",
"WIB",
"WITA",
"WIT",
"KZT",
"TRT",
163 "BYT",
"SGT",
"ICT",
"PHT",
"GST",
"HKT",
"JST",
"KST",
"Unknown"
165 static const string full_names[] = {
166 "Greenwich Mean Time",
"Coordinated Universal Time",
"Eastern European Time",
167 "Central European Time",
"Western European Time",
"Eastern European Summer Time",
168 "Central European Summer Time",
"Western European Summer Time",
169 "US Eastern Time",
"US Central Time",
"India Standard Time",
170 "Malaysia Time",
"Western Indonesia Time",
"Central Indonesia Time",
171 "Eastern Indonesia Time",
"Kazakhstan Time",
"Turkey Time",
172 "Belarus Time",
"Singapore Time",
"Indochina Time",
173 "Philippine Time",
"Gulf Standard Time",
"Hong Kong Time",
174 "Japan Standard Time",
"Korea Standard Time",
"Unknown Time Zone"
179 return uppercase_names[(int)value];
181 return short_names[(int)value];
183 return full_names[(int)value];
string to_timezone_str(TimeZone value, FormatType format=UPPERCASE_NAME)
Converts a TimeZone enum value to a string.
string to_weekday_str(Weekday value, FormatType format=UPPERCASE_NAME)
Converts a Weekday enum value to a string.
string to_month_str(Month value, FormatType format=UPPERCASE_NAME)
Converts a Month enum value to a string.
@ UPPERCASE_NAME
Uppercase short name.
const std::string & to_str(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.