How do I make a real-world timer

How do I make a countdown timer that continuously functions even when the game is offline/closed?

It should be according to real-world time.

Example Scenario:

  • Player has 24 hours (Probably 7:30am)
  • Player turns off application/device
  • Player turns on application after 12 hours (Probably 6:30pm)
  • Player has 12 hours left on the timer.

Hi, the timer won’t work when the game is closed. You can find a solution for that problem here: Read Device time