[help][request]

So i want to find a script where everytime the server restart’s auto or manual the script looks at what time it is and what time the server will restart for example (manual restart at 11:49pm, server due to restart at 12:00am, time turns to 11:50pm. A message saying: ~y~ Server Restart in: 10 minutes)

what are you using to determine when the server will restart?