From: Matthew Rudy Date: 2007-09-03T00:28:45+09:00 Subject: Re: time class changed in ruby-1.8.6? Ball, Donald A Jr (Library) wrote: > Hi guys. I'm in the process of migrating a ruby app from 1.8.5 to 1.8.6 > and noticed that the Time class seems to have changed. It used to have a > convenient to_date method, but is now lacking it, and I've had little > luck trying to find the release notes indicating why this changed. Can > anyone point in that direction and/or suggest a better way of converting > times to dates? Merci. > > - donald I think I've found another change. I don't know if this is on purpose. But at some point before ruby 1.8.6 the following code worked; >> Time.now.strftime("%d %h '%y") => "02 Sep '07" >> Time.now.strftime("%d %b '%y") => "02 Sep '07" But now in 1.8.6; >> Time.now.strftime("%d %h '%y") => "" >> Time.now.strftime("%d %b '%y") => "02 Sep '07" ie. seemingly support for "%h" has been removed. -- Posted via http://www.ruby-forum.com/.