[Bug:trunk] rubyspec: Date#parse can handle YYDDD as year and day number FAILED

e$B$U$J$P$5$se(B (e$B$^$?$Oe(B akr e$B$5$s!)e(B)
e$B1sF#$G$9!#e(B

e$B0J2<$Ne(B Date.parse e$B$K4X$9$k5sF0$N0c$$$Oe(B 1.9
e$B$+$i$N;EMMJQ99$G$7$g$&$+!#e(B

ML [email protected]$N%m%0$de(B ChangeLog
e$B$r8+$l$P$o$+$j$=$&$J$b$N$G$9$,!"<j4V$,e(B
e$B$+$+$k$N$HM}2r$G$-$k<+?.$,$J$$$N$H$G!"J9$$$F$7$^$$$^$9!#$9$_$^$;$s!#e(B

ruby18 e$B$O$9$Y$Fe(B ruby 1.8.8dev (2010-01-26 revision 26430)
[i686-linux] e$B$G!"e(B
ruby19 e$B$O$9$Y$Fe(B ruby 1.9.2dev (2010-01-28 trunk 26458)
[i686-linux] e$B$G$9!#e(B

  1. XX e$BG/$,e(B 20XX e$BG/$H2r<a$5$l$k$h$&$K$J$C$?$N$O3NDj!)e(B

$ ruby18 -rdate -e ‘p Date.parse(“10-01-07”).strftime("%Y %m %d")’
“0010 01 07”

$ ruby19 -rdate -e ‘p Date.parse(“10-01-07”).strftime("%Y %m %d")’
“2010 01 07”

  1. e$B7nF|$N2r<a$N=g=x$,JQ$o$C$?$N$O0U?^E*!)e(B

$ ruby18 -rdate -e ‘p Date.parse(“10/01/2007”).strftime("%Y %m %d")’
“2007 10 01”

$ ruby19 -rdate -e ‘p Date.parse(“10/01/2007”).strftime("%Y %m %d")’
“2007 01 10”

  1. e$BJ#9g5;e(B

$ ruby18 -rdate -e ‘p Date.parse(“10/01/07”).strftime("%Y %m %d")’
“0007 10 01”

$ ruby19 -rdate -e ‘p Date.parse(“10/01/07”).strftime("%Y %m %d")’
“2010 01 07”

http://github.com/rubyspec/rubyspec/blob/master/library/date/shared/parse_eu.rb
http://github.com/rubyspec/rubyspec/blob/master/library/date/shared/parse_us.rb

e$B0J2<$Ne(B Date.parse e$B$K4X$9$k5sF0$N0c$$$Oe(B 1.9 e$B$+$i$N;EMMJQ99$G$7$g$&$+!#e(B

e$B$O$$!#e(B

e$B%A%1%C%He(B #2677 e$B$,99?7$5$l$^$7$?!#e(B (by Yusuke E.)

e$B%9%F!<%?%9e(B Opene$B$+$ie(BRejectede$B$KJQ99e(B
ruby -v ruby 1.9.2dev (2010-01-28 trunk 26458)
[i686-linux]e$B$K%;%C%He(B

e$B0J2<$Ne(B Date.parse e$B$K4X$9$k5sF0$N0c$$$Oe(B 1.9 e$B$+$i$N;EMMJQ99$G$7$g$&$+!#e(B
e$B$O$$!#e(B

e$BN;2r$7$^$7$?!#e(B
e$B$9$P$d$$$*JV;v$"$j$,$H$&$4$6$$$^$7$?!#e(B


Yusuke E. [email protected]

http://redmine.ruby-lang.org/issues/show/2677

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs