MQL4 Reference Date and Time TimeSeconds

MQL4 Help as One File:

TimeSeconds

Returns the amount of seconds elapsed from the beginning of the minute of the specified time.

int  TimeSeconds(
   datetime      date            // date and time
   );

Parameters

date

[in]  Datetime as number of seconds elapsed since midnight (00:00:00), January 1, 1970.

Returned value

The amount of seconds elapsed from the beginning of the minute of the specified time.

Example:

  int m=TimeSeconds(TimeCurrent());