settimeout but for a specific time code example
Example: setTimeout but for a given time
function setToHappen(fn, date){
return setTimeout(fn, date - Date.now());
}
function setToHappen(fn, date){
return setTimeout(fn, date - Date.now());
}