A utility class for handling date and time operations.
More...
|
static bool | Sort (MqlDateTime &start, MqlDateTime &end) |
| Sorts the start and end dates in ascending order.
|
|
static bool | Sort (datetime &start, datetime &end) |
| Sorts the start and end dates in ascending order.
|
|
static bool | IsIn (MqlDateTime &date, MqlDateTime &start, MqlDateTime &end) |
| Checks if a date is within a specified range.
|
|
static bool | IsIn (datetime &date, datetime &start, datetime &end) |
| Checks if a date is within a specified range.
|
|
static void | UpdateDate (MqlDateTime &date, MqlDateTime &start, MqlDateTime &end) |
| Updates the start and end dates to match the given date.
|
|
static void | UpdateDate (datetime &date, datetime &start, datetime &end) |
| Updates the start and end dates to match the given date.
|
|
static void | UpdateDate (MqlDateTime &start, MqlDateTime &end) |
| Updates the start and end dates to match the current time.
|
|
static void | UpdateDate (datetime &start, datetime &end) |
| Updates the start and end dates to match the current time.
|
|
A utility class for handling date and time operations.
◆ IsIn() [1/2]
bool TimeHelper::IsIn |
( |
datetime & | date, |
|
|
datetime & | start, |
|
|
datetime & | end ) |
|
static |
Checks if a date is within a specified range.
- Parameters
-
date | Date to check |
start | Start date of the range |
end | End date of the range |
- Returns
- True if the date is within the range, false otherwise
◆ IsIn() [2/2]
bool TimeHelper::IsIn |
( |
MqlDateTime & | date, |
|
|
MqlDateTime & | start, |
|
|
MqlDateTime & | end ) |
|
static |
Checks if a date is within a specified range.
- Parameters
-
date | Date to check |
start | Start date of the range |
end | End date of the range |
- Returns
- True if the date is within the range, false otherwise
◆ Sort() [1/2]
bool TimeHelper::Sort |
( |
datetime & | start, |
|
|
datetime & | end ) |
|
static |
Sorts the start and end dates in ascending order.
- Parameters
-
start | Start date to sort |
end | End date to sort |
- Returns
- True if the dates were sorted, false if they are equal
◆ Sort() [2/2]
bool TimeHelper::Sort |
( |
MqlDateTime & | start, |
|
|
MqlDateTime & | end ) |
|
static |
Sorts the start and end dates in ascending order.
- Parameters
-
start | Start date to sort |
end | End date to sort |
- Returns
- True if the dates were sorted, false if they are equal
◆ UpdateDate() [1/4]
void TimeHelper::UpdateDate |
( |
datetime & | date, |
|
|
datetime & | start, |
|
|
datetime & | end ) |
|
static |
Updates the start and end dates to match the given date.
- Parameters
-
date | Source date to copy from |
start | Start date to update |
end | End date to update |
◆ UpdateDate() [2/4]
void TimeHelper::UpdateDate |
( |
datetime & | start, |
|
|
datetime & | end ) |
|
static |
Updates the start and end dates to match the current time.
- Parameters
-
start | Start date to update |
end | End date to update |
◆ UpdateDate() [3/4]
void TimeHelper::UpdateDate |
( |
MqlDateTime & | date, |
|
|
MqlDateTime & | start, |
|
|
MqlDateTime & | end ) |
|
static |
Updates the start and end dates to match the given date.
- Parameters
-
date | Source date to copy from |
start | Start date to update |
end | End date to update |
◆ UpdateDate() [4/4]
void TimeHelper::UpdateDate |
( |
MqlDateTime & | start, |
|
|
MqlDateTime & | end ) |
|
static |
Updates the start and end dates to match the current time.
- Parameters
-
start | Start date to update |
end | End date to update |
The documentation for this class was generated from the following file:
- C:/Users/solut/AppData/Roaming/MetaQuotes/Terminal/010E047102812FC0C18890992854220E/MQL5/Include/AtingMQL5/src/time/TimeHelper.mqh