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];
138 static const string uppercase_names[] = {
139 "GMT",
"UTC",
"EET",
"CET",
"WET",
"EEST",
"CEST",
"WEST",
"UNKNOWN"
141 static const string short_names[] = {
142 "GMT",
"UTC",
"EET",
"CET",
"WET",
"EEST",
"CEST",
"WEST",
"Unknown"
144 static const string full_names[] = {
145 "Greenwich Mean Time",
"Coordinated Universal Time",
"Eastern European Time",
146 "Central European Time",
"Western European Time",
"Eastern European Summer Time",
147 "Central European Summer Time",
"Western European Summer Time",
"Unknown Time Zone"
152 return uppercase_names[(int)value];
154 return short_names[(int)value];
156 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")
@ EET
Eastern European Time.
@ CEST
Central European Summer Time.
@ WEST
Western European Summer Time.
@ WET
Western European Time.
@ UNKNOWN
Unknown Time Zone.
@ UTC
Coordinated Universal Time.
@ GMT
Greenwich Mean Time.
@ EEST
Eastern European Summer Time.
@ CET
Central European Time.
Main namespace for the Time Shield library.