
April 25th, 2009, 03:38 PM
|
|
Registered User
|
|
Join Date: Apr 2009
Posts: 1
Time spent in forums: 18 m 55 sec
Reputation Power: 0
|
|
Time have passed.
Hey there, I have asked this somewhere else but I will be asking here too:
How do I know how much time have passed since a time object?
I want a way to know how many seconds have passed?
Code:
$time = Time.now
# I leave, and come back after 3 hours.
# Now I want a method to return how much time have passed...
# It should return "10800", the number of seconds passed.
Thanks.
|