This is my code:
var d = new Date();
function myFunction() {
ifNewDay();
}
function ifNewDay() {
var currentTime = d.toLocaleTimeString();
if(currentTime == "3:21:00:00 AM EDT"){
Logger.log("It is 3:21 PM");
} else {
ifNewDay();
}
}
I am trying to write code that will only continue once it hits a certain time, I'm sure there's a way easier way to do this, but I'm brand new. Thanks.