Time passage when game is shut down

I'm trying to make a game with real time set up where it pulls the clock from the computer time kinda like how Animal Crossing or tamagotchi's. How can I call on the clock and Calendar on my PC into my game? Like how many days have I been inactive and stuff happens while the game is shut down. For example, It has farming in it. Once a day the seed grows and is ready to harvest in say 12 hours later, so say I plant at 6 PM and go to bed then open up my game at 6 AM and I can harvest as late as 18 hours kind of a deal. Are there any plugins that can call on that and compare time of closing game to time of running the game and put the numbers in accordingly? Mostly I'd have at the most accurate is minutes for display purposes, but all the events will most likely run based on hours and/or days. I'm not good with JavaScript so I'm not sure how to go about it.
Hi, you'll find lots of information in this post:


Basically, you'll be able to store dates and times in variables, and differentiate between the variable date vegetable 1 registered and the current date. (one variable for the day, one for the hour, one for the minutes, etc.).

a little off-topic advice that will help you if your project is animal crossing like :

If you want to grow a lot of things, I recommend a plugin that will allow you to register “self.variables” (basically, if you have 10event vegetables, they'll each have their own “growth” variable instead of having a global variable for vegetable 1 growth, vegetable 2 growth, etc.).

here's an example:
here's another :
Hi, you'll find lots of information in this post:


Basically, you'll be able to store dates and times in variables, and differentiate between the variable date vegetable 1 registered and the current date. (one variable for the day, one for the hour, one for the minutes, etc.).

a little off-topic advice that will help you if your project is animal crossing like :

If you want to grow a lot of things, I recommend a plugin that will allow you to register “self.variables” (basically, if you have 10event vegetables, they'll each have their own “growth” variable instead of having a global variable for vegetable 1 growth, vegetable 2 growth, etc.).

here's an example:
here's another :
Thanks, I struggle finding things that have already been made in the forums (mainly because I am never sure how to word my searches) so this should help.
I struggle finding things that have already been made in the forums (mainly because I am never sure how to word my searches)
When Googling things, less is often more. Only include words that are completely pertinent to what you want to find.

So if I Google "rpg maker mv real time" the fourth result is exactly what you're talking about (the thread linked above).

If I then take the technical wording from that and Google "rpg maker mv system time" there are two more results that come right up and are immediately applicable:


Original thread: https://forums.rpgmakerweb.com/threads/time-passage-when-game-is-shut-down.171883/