Is there a simple script for time?

So, In my game I want to add a time system.
I want certain events to only happen at certain times of the day like a conditional branch.
Like for example:

At night time a guy will appear in a town and sell you rare items but he will go away during the day.

Other than that I would like the screen to tint at certain times. I would also love for the game's
messages to tell you the time. So that an NPC could say "The current time is 1:20"

I would love a simple plugin script.

Does anyone know were I can find something like this, or can someone make me something like this?
If you respond I would be really happy because I usually never get a response on script requests.
simple time systems like that are usually done by events alone - that is a lot easier than configuring a script with time for a specific game.

basically you'll have a common event on parallel process counting up variables for minutes, hours and days and have the game react to those variables.
If you can do it with events, it's probably better to do so.

Original thread: https://forums.rpgmakerweb.com/threads/is-there-a-simple-script-for-time.97700/