Download MetaTrader 5

TimeCurrent() is different than TimeToStr(TimeCurrent(), TIME_DATE|TIME_SECONDS)

To add comments, please log in or register
Have you developed an application? Publish it in Code Base!
alaeddin
13
alaeddin 2016.01.19 19:57 

Hi,

 Why TimeCurrent() is different than when you convert to string using TimeToStr(TimeCurrent(), TIME_DATE|TIME_SECONDS) for the same tick in OnTick() in EA?

For example, TimeCurrent() returns 2016.01.19 14:49:59 while TimeToStr(TimeCurrent(), TIME_DATE|TIME_SECONDS) returns 1453214999

 Thanks,

 Ala 

Carl Schreiber
6580
Carl Schreiber 2016.01.20 11:20  
You'll find the answer in the editor's reference: data type datetime
To add comments, please log in or register