Yes that will do what I want, the problem is I'll be putting the time into a text file, and then later the script will run again and the first variable will be the previous time read from the text file
If you syswrite Time.now.localtime it will put the full string "Thu Oct 30 20:23:09 Eastern Standard Time 2003"
... or I can use Time.now.localtime.to_i and convert it to an int.. but how do you convert that to a time object?
I guess I could try something like
time1 = Time.now.localtime.to_i
sleep(5)
time2 = Time.now.localtime.to_i
then divide that number by 60 to get the minutes...
I do believe that does the day as well, as Time.now.localtime uses the full time string
That may work!
knew it had to be easy, I just gotta learn to think in Ruby