MQL4 Reference Date and Time StructToTime

MQL4 Help as One File:

StructToTime

Converts a structure variable MqlDateTime into a value of datetime type and returns the resulting value.

datetime  StructToTime(
   MqlDateTime$  dt_struct      // structure of the date and time
   );

Parameters

dt_struct

[in] Variable of structure type MqlDateTime.

Return Value

The value of datetime type containing the number of seconds since 01.01.1970.