MZ VS Date and Time System


I'm using this plugin and wondering if anyone can tell me how to set the time to a specific time using the JS? I know how to set it forward by a certain amount but not a set it to a specific time. I'm sure its something simple I'm overlooking or just don't know but I know nothing about JS really. Any help would be appreciated.
It doesn't seem that you'd need to use any JavaScript. The section of the instructions you linked to say there are plugin commands to:
1714325783431.png


It says you may use JavaScript if you want it to involve some kind of calculation, but if you just want a specific date you'd just type in those numbers.
The picture I attached is the options its talking about. If I put in a number after the + it just adds that much time to the current time. I thought maybe if I put a number into the parenthesis it would set the time to that specific time but it doesn't do anything and if I change the + to a = it crashes lol. So I'm not sure what it is I'm missing. Thank you for your reply!
That 'getHour()' stuff gets the current hour. Does it work if you remove all the stuff that's in there and just write a number between 0 and 23 in there?

If that does not work and it wants you to add to the current time, try:

TimeManager.getHour() + (X - TimeManager.getHour())

where X is your target hour. Like if it's 8 and you want to get to 20, that's 8 + (20 - 8)
Removing everything and just typing the hour I want worked! Thank you so much!

Original thread: https://forums.rpgmakerweb.com/threads/vs-date-and-time-system.168143/