HELP With Converting TimeLocal() to calculate elapsed seconds since the start (00:00) of the current day? New comment [Deleted] 2011.06.04 09:50 Hi, Could someone please help me. I am trying to use seconds elapsed since the start of the day using my computers time in an EA using TimeLocal() and cannot figure out how to do this. Any suggestions would be highly appreciated [ARCHIVE] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 3. Questions from Beginners MQL5 MT5 MetaTrader 5 [ARCHIVE]Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Can't go anywhere without you - 5. blogzr3 2011.06.04 13:10 #1 int h=TimeHour(TimeLocal()); int m=TimeMinute(TimeLocal()); Print("h=",h," m=",m," sec=",h*3600+m*60); William Roeder 2011.06.04 17:18 #2 datetime now = TimeLocal(); #define secondsPerDay 86400 int secs= now - now%secondsPerDay; [Deleted] 2011.06.04 23:43 #3 Thanks blogzr3 and WHRoeder. I really appreciate the input. New comment
Hi,
Could someone please help me.
I am trying to use seconds elapsed since the start of the day using my computers time in an EA using TimeLocal() and cannot figure out how to do this.
Any suggestions would be highly appreciated