Download MetaTrader 5
To add comments, please log in or register
Find out the latest MQL5.community news!
moonsboy
889
moonsboy 2014.11.11 04:56 
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
7873
Keith Watford 2014.11.11 05:39  

Like this?

  datetime now=TimeCurrent();
  int secs=(int)now; 
moonsboy
889
moonsboy 2014.11.12 02:58  
Dear GumRai, thankyou very much!
/
To add comments, please log in or register