From 1f243d117b353160c2160aef6d14559166ce1478 Mon Sep 17 00:00:00 2001 From: tadf Date: Sun, 31 Aug 2003 01:26:29 +0000 Subject: yyyy/mm is not an acceptable format. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4464 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/time.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lib/time.rb') diff --git a/lib/time.rb b/lib/time.rb index 043257a4d..115e7e963 100644 --- a/lib/time.rb +++ b/lib/time.rb @@ -99,7 +99,7 @@ class Time # # your timezone is GMT: # Time.parse("16:30") #=> Thu Nov 29 16:30:00 GMT 2001 # Time.parse("7/23") #=> Mon Jul 23 00:00:00 GMT 2001 - # Time.parse("2002/1") #=> Tue Jan 01 00:00:00 GMT 2002 + # Time.parse("Aug 31") #=> Fri Aug 31 00:00:00 GMT 2001 # # Since there are numerous conflicts among locally defined timezone # abbreviations all over the world, this method is not made to @@ -525,8 +525,6 @@ if __FILE__ == $0 Time.parse("2001/11/29 21:12", now)) assert_equal(Time.local( 2001,11,29), Time.parse("2001/11/29", now)) - assert_equal(Time.local( 2001,11), - Time.parse("2001/11", now)) assert_equal(Time.local( 2001,11,29), Time.parse( "11/29", now)) #assert_equal(Time.local(2001,11,1), Time.parse("Nov", now)) -- cgit