Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

set function to execute at certain time js

//year, month 0-11, date, hour, min (can add ,sec,msec)
var eta_ms = new Date(2015, 0, 21, 17, 0).getTime() - Date.now();
var timeout = setTimeout(function(){}, eta_ms);
 
PREVIOUS NEXT
Tagged: #set #function #execute #time #js
ADD COMMENT
Topic
Name
2+9 =