EA Error code

 

can anyone let me know what is the error with this command I cannot resolve it and what should be the correct format

datetime currentTime = TimeCurrent();

   int hh = TimeHour(currentTime);
 
HeatherMartin66d I cannot resolve it and what should be the correct format

Stop using ChatGPT and learn the language. There is no TimeHour in MT5.
          Migrating from MQL4 to MQL5 - MQL5 Articles № 11 (2010)


Use a proper title. Your question is about compiling, not an error code from an EA.