After executing My code , the function instantly executes and shows the alerted message. my intent is to correct it to show the alert at the exact specified time.
Here is my code :
var millisTill10 = new Date(new Date().getFullYear(),new Date().getMonth(),
new Date().getDay(), 1, 16, 59, 999) - Date.now();
setTimeout(function(){alert("It's the time!")}, millisTill10);