Wait exactly 24 hours

What is the code needed to have a script do something after exactly 24 hours?

So the most simplistic way would be to do something like this:

void Start(){
    InvokeRepeating("ThingToDoOnceADay",0,86400);
}

void ThingToDoOnceADay(){
    Debug.Log("It's Been 1 Day");
}

But you’re going to lose track of your time if you exit the application.

So you could either mark the time on Application.Quit(); to continue your 24 hours later, or if you want it to use real-life time you can use this