class TestUtilTime
Public Instance Methods
test_time()
click to toggle source
# File vendor/qwik/lib/qwik/util-time.rb, line 77 def test_time t = Time.gm(2000, 1, 1, 12, 34, 56) assert_equal '01-01', t.md assert_equal '20000101', t.ymd_s assert_equal '2000-01-01', t.ymd assert_equal '2000-01-01 12:34:56', t.ymdx assert_equal "2000-01-01(Sat) 12:34:56", t.ymdax assert_equal "2000-01-01 (土) 12:34:56", t.format_date assert_equal 'Sat, 01 Jan 2000 12:34:56 GMT', t.rfc1123_date assert_equal '2000-01-01T12:34:56', t.rfc_date end