Time/Day Keeping Script

Okay, so I'm going to be asking for a really big script here. Before I get started, let me say that you'll get a free copy of my project and credit.

I'm making an arcade type game where the play sees how long they can survive in a cave with a monster chasing them. If the monster touches them, they die. I'd like a script that will keep all of the players times and display them through script calls. The game is split in to days so I'd like it to go - Day 1: <insert time here> Day 2: <insert time here> and so on. If the player gets caught I want the time to be set to zero. I'd like it to be counted in seconds, and then minutes, then hours depending on how long the player survives. When the scores are displayed, I'd also like an option to filter the scores so they can see their best days, worst days and so on. You may say this can be evented but I would like the days to go on forever.

If you need more information don't hesitate to contact me. Thanks in advance.
Have I got it right?:

You want a time system that starts with day 1 and update itself as long as the player is alive. When the player dies his time is saved to a list and the day is reset to zero.

Do you want any aditional Scene to view the scores or do you just want to use scriptcalls to get the list of days which will be sortable to display the scores yourself through eventing?

And do you want a small hud on the map which will show the current seconds, minutes, days?
Okay, to answer all your questions:

1.) I'd like a box in the bottom right that says the day.

2.) Yes, I'd like the player's score to be set to zero if they get caught. (I want it to become the next day when they get caught/get gameover)

3.) I don't understand the bit about the scene, but through script calls I'd like a box the player can scroll down and view days in chronological order. Then I'd like a bit at the top of the box which the player can filter the day (Best times, worst, failed days).

Stuff I may not have mentioned:

I don't want the days to progress on their own. Only when the player sleeps in a bed.

This is more than a time script, as you can probably tell.
So basically seconds, minutes and hours will progress by themselves and the only way to progress to the next day is through sleeping or through dieing? Does the score reset also on sleep or only when the player dies?

How do you want to calculate the score? Or do you want to display seconds, minutes and hours as the score?

I assume you have evented the "get caught" part and just need a functionality to dont go to the Game Over screen but to progress to the next day only and reset the score.

Am I right? 
I don't want the seconds, minutes and hours to be displayed, only the days so I'm guessing that shouldn't matter and yes, sleeping or dying is the only way to progress to the next day. The score only goes to 0 when the player dies. On the score display I want it be like this - hours/mins/secs. So basically it will be measured in seconds first until it gets to a minute or hour etc. And for the last part you are correct.

P.S - Sorry for the late reply, I have been busy developing the game.

Original thread: https://forums.rpgmakerweb.com/threads/time-day-keeping-script.35606/