From: "David A. Black" Date: 2009-10-06T20:31:11+09:00 Subject: Re: Ruby for the wrong reason Hi -- On Tue, 6 Oct 2009, 7stud -- wrote: > flebber wrote: >> Secondly I found capturing the date input from a console in python to >> be a little long winded, below is the script I wrote in python would >> this be significantly easier in Ruby. >> > > No. I think in ruby the code would be almost exactly the same--except > it's significantly harder to figure out in ruby because there is no > documentation about the format specifiers you can use with strftime() > and strptime(). Amazing, huh? I usually go straight to the system library documentation for this stuff, but ri Time#strftime will help you too. David -- David A. Black, Director Ruby Power and Light, LLC (http://www.rubypal.com) Ruby/Rails training, consulting, mentoring, code review Book: The Well-Grounded Rubyist (http://www.manning.com/black2)