time.tv_sec â int
Instance Public methods
Returns the value of time as an integer number of seconds since the Epoch.
1 2 3 | t = Time .now "%10.5f" % t.to_f #=> "1270968656.89607" t.to_i #=> 1270968656 |
Returns the value of time as an integer number of seconds since the Epoch.
1 2 3 | t = Time .now "%10.5f" % t.to_f #=> "1270968656.89607" t.to_i #=> 1270968656 |
Designed by : w10schools
service@w10schools.com
Please login to continue.