MQL4参考 日期和时间 Seconds

Seconds

Returns the amount of seconds elapsed from the beginning of the current minute of the last known server time by the moment of the program start.

int  Seconds();

Returned value

The amount of seconds elapsed from the beginning of the current minute of the last known server time by the moment of the program start (this value will not change within the time of the program execution).

Note

At the testing, the last known server time is modelled.

Example:

  if(Seconds()<=15)
    return(0);