From: Dan Date: 2010-11-20T04:35:15+09:00 Subject: Re: Time question On Thu, 18 Nov 2010 02:25:53 -0500 Eva wrote: > Why Time.now - 86400 works? > > but when I tried Time.now(-86400) it won't work. > I was thinking -86400 is an argument for the class method "now". Time.now cannot take any arguments. So Time.now(-86400) or Time.now -86400 fails. But that's not how your first line is being interpretted. You're creating a new Time object (with zero arguments) and then subtracting 86400 seconds from it. -- Dan