Sha256: f271d04d157824074f7271427bf0b2edea67ceb3a4e2d7343765fa2268daeefa
Contents?: true
Size: 516 Bytes
Versions: 5
Compression:
Stored size: 516 Bytes
Contents
require 'facets/time.rb' require 'test/unit' require 'time' class TC_Time_Stamp < Test::Unit::TestCase # TODO: Problem with TIMEZONE. #def test_stamp_01 # t = Time.parse('4/20/2005 15:37') # assert_equal( "Wed Apr 20 15:37:00 PDT 2005", t.stamp ) #end def test_stamp_02 t = Time.parse('2005-04-20 15:37') assert_equal( "April 20, 2005 15:37", t.stamp(:long) ) end def test_stamp_03 t = Time.parse('2005-04-20 15:37') assert_equal( "20 Apr 15:37", t.stamp(:short) ) end end
Version data entries
5 entries across 5 versions & 1 rubygems