Download MetaTrader 5

How to get the latest time in seconds with functions?

To add comments, please log in or register
moonsboy
891
moonsboy  
Dears, How to get the latest time in seconds with functions? e.g. if now the candle time is 2014.11.10 21:15:25, how to get it and transfer it to seconds? Thank you very much!
Keith Watford
Moderator
10564
Keith Watford  

Like this?

  datetime now=TimeCurrent();
  int secs=(int)now; 
moonsboy
891
moonsboy  
Dear GumRai, thankyou very much!
To add comments, please log in or register