Download MetaTrader 5
To add comments, please log in or register
Have you developed a trading robot? Publish it in the Market and make profit!
Lovro Mirnik
54
Lovro Mirnik 2015.02.09 22:30 

I was hoping someone would be able to explain to me why TimeCurrent() used while defining an integer returns such a crazy value:

int TimeNow = TimeCurrent();
Print("TimeNow = " + TimeNow);


An example output:

TimeNow = 1423501132

This would be the time at 22:58:53.647.

Interesting isn't it?

Keith Watford
Moderator
7976
Keith Watford 2015.02.09 23:56  

Not interesting at all. It is expected

Read the documentation for datetime

TimeCurrent returns a datetime type 

/
To add comments, please log in or register