[ad_1]
I'm using javascript, how to check the current time is lower than 10 minutes from variable nextTime?
var currentTime = "11:25:00";
var nextTime = "11:35:00";
if(currentTime <= nextTime)
alert("test");
If I do like code above, time before 11:35:00 it always alert me.
What I want detect 10 minutes before nextTime, so it will always alert once.
Any idea?
[ad_2]
لینک منبع