set function to execute at certain time js

Solutions on MaxInterview for set function to execute at certain time js by the best coders in the world

showing results for - "set function to execute at certain time js"
Jannik
06 Jul 2018
1//year, month 0-11, date, hour, min (can add ,sec,msec)
2var eta_ms = new Date(2015, 0, 21, 17, 0).getTime() - Date.now();
3var timeout = setTimeout(function(){}, eta_ms);
similar questions
queries leading to this page
set function to execute at certain time js