Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

14 lines (11 sloc) 0.364 kB
require 'common'
test_check('time')
t = Time.at(100)
test_ok(t.to_i == 100)
test_ok(t.to_f == 100)
#test_ok(t.to_s == "ÐÇÆÚËÄ Ò»ÔÂ 01 08:00:00 +0800 1970")
test_ok(Time.at(1000) - t == 900)
test_ok(t + 900 == Time.at(1000))
test_ok((Time.at(100) <=> Time.at(100)) == 0)
test_ok((Time.at(100) <=> Time.at(101)) == -1)
test_ok((Time.at(100) <=> Time.at(99)) == 1)
Jump to Line
Something went wrong with that request. Please try again.