Time Problem In New MT4 Build
I am trying to print the times to my chart but the format is not correct:
Log:
2014.02.04 17:47:29.079 Expert Time Check EURUSD H1: Local Time Is.1391536049 GMT Time Is.1391536049 Current Time Is.1391543240
Code:
Yesterday this as displaying as say 17:51 which is the correct format but for some reason today its displaying like this.
I would expect it to show the datetime . . . so what you get today is correct in my opinion. Use TimeToString() with TIME_MINUTES
Edit: Ah, I guess it may be because of the + that it formatted to minutes . . .
string var1=TimeToStr(TimeCurrent(),TIME_DATE|TIME_SECONDS);
I am trying to print the times to my chart but the format is not correct:
Log:
2014.02.04 17:47:29.079 Expert Time Check EURUSD H1: Local Time Is.1391536049 GMT Time Is.1391536049 Current Time Is.1391543240
Code:
Yesterday this as displaying as say 17:51 which is the correct format but for some reason today its displaying like this.