Just to add my tuppence.... the same applies to Date.parse (amongst 
other Date/Time methods). Can anyone explain why this is the case and 
why some documented methods in Date and Time are only available by 
requiring the respective module when other methods are available by default?

As i've come across this in the past i'm interested to know if there is 
a reason for this. Is this the intended behaviour or is it technically a 
"bug"?

Jim


Tim Heaney wrote:
> Srikanth Jeeva <sri.jjhero / gmail.com> writes:
>   
>> i used this code ..
>>
>>  Time.parse("October 20th, 2008, 7:48 pm")
>> got this error...
>>
>> NoMethodError: undefined method `parse' for Time:Class
>>
>> can any one help ,
>> how to install the parse method???
>>     
>
> You can use the time module.
>
>   irb(main):005:0> require 'time'
>   => true
>   irb(main):006:0> Time.parse("October 20th, 2008, 7:48 pm")
>   => Mon Oct 20 19:48:00 -0400 2008
>
>   
> ------------------------------------------------------------------------
>
>
> No virus found in this incoming message.
> Checked by AVG - http://www.avg.com 
> Version: 8.0.176 / Virus Database: 270.9.15/1833 - Release Date: 05/12/2008 19:08
>
>