Looking for a Script that will grab the Player's PC's Time and update it.

I've got a clock on the wall and want an event to tell it the real time, or AKA the Player's PC's Time and the script will update the time when the PC's time has changed. I going to use this as a puzzle for a pass-code. So the pass-code is what ever the PC's time is. Speaking of which, I would also need to know how to make the code be subquencle with the Time Script. So whatever the Time is on the PC, the pass-code will be that too as well. 
I've moved this thread to Script request. Please be sure to post your threads in the correct forum next time. Thank you.
You can get the current time with this:

Code:
Time.new
To format it, use strftime (http://ruby-doc.org/core-1.9.3/Time.html#method-i-strftime):
Code:
Time.new.strftime("%H%M%S")
$time = Time.new.strftime("%H:%M:%S")


print $time
If someone is just getting the current time, it would be better to use

Code:
Time.now
instead of initializing an entire Time object. It returns the same thing as Time.new, and the performance difference is negligible, but I'd be remiss for not mentioning it.
I'll quote the Ruby API about ::now

Synonym for Time.new. Returns a Time object initialized to the current system time.
I guess having not coded for so long has dulled some parts. Anyways, the method seems like a redundancy but it's still there so, ¯\_(ツ)_/¯
I would also need to know how to make the code be subquencle with the Time Script.
What? What is subquencle? What is the Time Script?
Ahh . Forgot to come back at Marked this thread as answered.

Oh well done it now.

What? What is subquencle? What is the Time Script?
NVM, forget it, I decided to not use that idea in my game.- Well for this time around.

Original thread: https://forums.rpgmakerweb.com/threads/looking-for-a-script-that-will-grab-the-players-pcs-time-and-update-it.41306/