MQL4 - automated forex trading   /  

Documentation

MQL4 Reference  Date & Time functions  TimeSeconds

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