daylight saving time function TimeDaylightSavings();

 

int  TimeDaylightSavings();

 

can anyone tell me if this function is accurate in the sense it really follows the actual date when dayight saving is active or not? 

 
anyone?
 
bobo1974:
anyone?

It's clearly described in the documentation.

Returns correction for daylight saving time in seconds, if the switch to summer time has been made. It depends on the time settings of your computer.

So yes it works correctly if the time settings of the underlying computer are configured correctly.

And it won't work in the strategy tester! 

TimeDaylightSavings - Date and Time - MQL4 Reference
TimeDaylightSavings - Date and Time - MQL4 Reference
  • docs.mql4.com
TimeDaylightSavings - Date and Time - MQL4 Reference
Reason: