From: gwtmp01@... Date: 2006-01-02T10:16:49+09:00 Subject: Re: Can't change the value of self On Jan 1, 2006, at 7:37 PM, Jonathan Leighton wrote: > Can't change the value of self (SyntaxError) > self = round_to *args > > Why doesn't it work? What can I do instead? Instead of a.round_to!(:hour) just write a = a.round_to(:hour) Or maybe a different name would help: a = a.closest(:hour) Gary Wright