Working on a userfriendly Time System

What do you think, is this going into the correct direction, or do you know Time Scripts with cool functions at which i could/should take a look?
 
Whats going on:
I decided to Event a Timesystem, i Evented one and because i wanted to make it easier to implement into existing Games
i made a Eventscript combination of it.
 
How does it Work:
You have a Paralell Common Event with a Loop and a 60Frames Wait and the Time Code into Eventcommand Script.
 
Features:
1. Add/Sub Time like you want, secs,mins,hours,days,weeks,month and years just set a variable to the value and its done.
2. Set Time  Set the Total time Variable (= ts_secs) directly all other total Time values convert properly.
3. Total time Values for secs,mins,hours,days,weeks,month and years. Used for Timestamps in Quests.
4. Ingame Clock and Calendar Values, for showing those in Textbox (or Hud) and for easier Eventsetup
 
More Content:
Iam not sure if iam missing Functions at the moment? Was thinking about switches for Weekdays, for more Eventpage setup
possibilities.
 
Bugs:
None are known
 
Code for Eventcommand Script:

# Add/SubTime Variable Idssecs = 1 ; mins = 2 ; hours = 3 ; days = 4 ; weeks = 5 ; month = 6 ; years = 7# Total Time Variable Idsts_secs = 8 ; t_mins = 9 ; t_hours = 10 ; t_days = 11 ; t_weeks = 12 ; t_month = 13t_years = 14# Ingame Time/Calendar Variable Idsig_sec = 15 ; ig_min = 16 ; ig_hour = 17 ; ig_day = 18 ; ig_week = 19 ; ig_month = 20ig_year = 21var = $game_variablesaddsub_time = (((((var[years]*12+var[month])*4+var[weeks])*7+var[days])*24 \+var[hours])*60+var[mins])*60+var[secs]if addsub_time != 0 ; var[ts_secs] += addsub_time ; else ; var[ts_secs] += 1 ; endvar[years] = 0 ; var[month] = 0 ; var[weeks] = 0 ; var[days] = 0var[hours] = 0 ; var[mins] = 0 ; var[secs] = 0var[t_mins] = var[ts_secs]/60 ; var[t_hours] = var[t_mins]/60var[t_days] = var[t_hours]/24 ; var[t_weeks] = var[t_days]/7var[t_month] = var[t_weeks]/4 ; var[t_years] = var[t_month]/12var[ig_sec] = var[ts_secs]%60 ; var[ig_min] = var[t_mins]%60var[ig_hour] = var[t_hours]%24 ; var[ig_day] = (var[t_days]%28)+1var[ig_week] = (var[t_weeks]%48)+1 ; var[ig_month] = (var[t_month]%12)+1var[ig_year] = var[t_years]
I know for someone not rusty in math this must look poor, but iam relearning.

If you can do this even shorter with all functionality, i would be interested. Just to see other Ways, too.
Ok the Initial Post got completly Edited.

Didnt expected Timesystem consuming so much Time in planing and execution.

Now its nearly finished, if no remake necesarry 🙂 .

Original thread: https://forums.rpgmakerweb.com/threads/working-on-a-userfriendly-time-system.44637/