MQL4参考 日期和时间 StructToTime

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.