Download MetaTrader 5

How to find difference in hours between London Open or GMT and Broker Server time?

To add comments, please log in or register
Sherif Hasan
7311
Sherif Hasan  

i really need to know :

How to find difference in hours between London Open or GMT and Broker Server time?

whroeder1
15060
whroeder1  
  1. London opens 8AM London time but London time is NOT GMT. In the summer it's BST.  GMT has no DST.
  2. In windows 8 you can ask for London time given GMT. (In windows 7 you can only get current London time)
  3. int diff = TimeGMT() - TimeCurrent();  Does not work in tester mode, must use constant TZ different and adjust for Broker DST (if any.)
Sherif Hasan
7311
Sherif Hasan  
datetime  GMT=TimeGMT();

I get following error:

'TimeGMT' - function is not defined

Is TimeGMT is standard function or must write custom function?

whroeder1
15060
To add comments, please log in or register