MQL4 Reference
Date & Time functions
TimeYear
| int TimeYear( |
datetime time) |
Returns year for the specified date. The returned value can be within the range of 1970 to 2037.
Parameters:
| time |
- |
Datetime as number of seconds elapsed since midnight (00:00:00), January 1, 1970. |
Sample:
int y=TimeYear(TimeCurrent());
|
|
|