MQL4参考 日期和时间 TimeGMTOffset

TimeGMTOffset

Returns the current difference between GMT time and the local computer time in seconds, taking into account switch to winter or summer time. Depends on the time settings of your computer.

int  TimeGMTOffset();

Return Value

The value of int type, representing the current difference between the local time of the computer and GMT time in seconds.The value of int type, representing the current difference between GMT time and the local time of the computer TimeLocal in seconds.

TimeGMTOffset() =  TimeGMT() - TimeLocal()