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"
63 static const string uppercase_names[] = {
64 "SUN",
"MON",
"TUE",
"WED",
"THU",
"FRI",
"SAT"
66 static const string short_names[] = {
67 "Sun",
"Mon",
"Tue",
"Wed",
"Thu",
"Fri",
"Sat"
69 static const string full_names[] = {
70 "Sunday",
"Monday",
"Tuesday",
"Wednesday",
"Thursday",
"Friday",
"Saturday"
75 return uppercase_names[(int)value];
77 return short_names[(int)value];
79 return full_names[(int)value];
107 static const string uppercase_names[] = {
109 "JAN",
"FEB",
"MAR",
"APR",
"MAY",
"JUN",
110 "JUL",
"AUG",
"SEP",
"OCT",
"NOV",
"DEC"
112 static const string short_names[] = {
114 "Jan",
"Feb",
"Mar",
"Apr",
"May",
"Jun",
115 "Jul",
"Aug",
"Sep",
"Oct",
"Nov",
"Dec"
117 static const string full_names[] = {
119 "January",
"February",
"March",
"April",
"May",
"June",
120 "July",
"August",
"September",
"October",
"November",
"December"
125 return uppercase_names[(int)value];
127 return short_names[(int)value];
129 return full_names[(int)value];
154 static const string uppercase_names[] = {
155 "GMT",
"UTC",
"EET",
"CET",
"WET",
"EEST",
"CEST",
"WEST",
"UNKNOWN"
157 static const string short_names[] = {
158 "GMT",
"UTC",
"EET",
"CET",
"WET",
"EEST",
"CEST",
"WEST",
"Unknown"
160 static const string full_names[] = {
161 "Greenwich Mean Time",
"Coordinated Universal Time",
"Eastern European Time",
162 "Central European Time",
"Western European Time",
"Eastern European Summer Time",
163 "Central European Summer Time",
"Western European Summer Time",
"Unknown Time Zone"
168 return uppercase_names[(int)value];
170 return short_names[(int)value];
172 return full_names[(int)value];
const std::string & to_str(Weekday value, FormatType format=UPPERCASE_NAME)
Converts a Weekday enum value to a string.
MoonPhase
Enumeration of the moon phases.
TimeFormatType
Enumeration of time format types.
FormatType
Enumeration of the format options for representing a weekday or month.
Month
Enumeration of the months of the year.
TimeZone
Enumeration of the time zones.
Weekday
Enumeration of the days of the week.
@ 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")
@ UPPERCASE_NAME
Uppercase short name.
@ 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.