Download MetaTrader 5

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.


Updated: 2015.12.03