MQL4 - automated forex trading   /  

Documentation

MQL4 Reference  Date & Time functions  TimeHour

 
Use the opportunities of
MQL5 in MetaTrader 5
Study the new MQL5 language
Study the new MQL5 language.
Reference is already available
int TimeHour( datetime time)
Returns the hour for the specified time.
Parameters:
time   -   Datetime is the number of seconds elapsed since midnight (00:00:00), January 1, 1970.
Sample:
  int h=TimeHour(TimeCurrent());