From: Dhruva Sagar Date: 2010-10-16T15:29:35+09:00 Subject: Re: Is this an executable code? --0016363b8e469c1faf0492b60fe8 Content-Type: text/plain; charset=UTF-8 Hi, local is a valid method for the Time class, you can check for that if wish to using this : Time.respond_to?(:local) The problem here is that in your call to local, you have passed in 7 arguments, from the error it is clear that you haven't defined the variables year, month, day...etc before making this call. Check the values you are passing to the function call. -- Thanks & Regards, Dhruva Sagar. On Sat, Oct 16, 2010 at 11:53, Kaye Ng wrote: > Time.local(year, month, day, hour, min, sec, msec) > > I typed this in IRB and it was > "undefined local variable or method 'year'...." > > Is 'local' a method for the Time class? > > Thanks guys > > -- > Posted via http://www.ruby-forum.com/. > > --0016363b8e469c1faf0492b60fe8--