Time.parse unavailable

K

Karol Hosiawa

Hello,
I have Ruby 1.8 installed on my Debian Unstable box.
When I type Time.parse in Irb it returns
NoMethodError: undefined method `parse' for Time:Class

RDoc says parse (as well as for example httpdate) are available
in the Time class.

What could I be doing wrong ?
Thanks
 
R

Ralf Müller

Hello,
I have Ruby 1.8 installed on my Debian Unstable box.
When I type Time.parse in Irb it returns
NoMethodError: undefined method `parse' for Time:Class

RDoc says parse (as well as for example httpdate) are available
in the Time class.

What could I be doing wrong ?

use 'irb -rtime' instead
 
M

mjmrifai

Hello Rubers


I am java programmer and I have no idea about Ruby please give some
help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,175
Messages
2,570,942
Members
47,489
Latest member
BrigidaD91

Latest Threads

Top