I know when, I first started to learn ruby one of the example was the systems time... My Problem is I can't remember how to do it. Can anyone help me out. I'd be much obliged.
Cpu time
Learning Ruby and RGSSxTime.now returns the date, time, timezone
Thank you, Xypher.
Hmmmm. Since its not a string, should I turn it into one to take it a part, or is i there another way to do it. I need all of it separated so I can set the date, hours, mins and seconds all assigned to different vars.
Hmmmm. Since its not a string, should I turn it into one to take it a part, or is i there another way to do it. I need all of it separated so I can set the date, hours, mins and seconds all assigned to different vars.
<<<sorry>>>
I refreshed during posting, and caused it to double post I guess.
I refreshed during posting, and caused it to double post I guess.
You can check the various functions of Time here.
t = Time.now
t.mon
t.day
t.hour
t.min
t.sec
strftime could be useful depending on how you wish it formatted.
t = Time.now
t.mon
t.day
t.hour
t.min
t.sec
strftime could be useful depending on how you wish it formatted.
Thank you very very much Racheal.
Original thread: https://forums.rpgmakerweb.com/threads/cpu-time.18029/