From: Gavin Kistner Date: 2006-09-15T01:46:38+09:00 Subject: Re: modifying the hour in a datetime object already created From: Josselin [mailto:josselin@wanadoo.fr] > but how can I modify the hour, which stays at 16:00:00 ? You can't - DateTime objects are immutable. You'd need to create the DateTime object with the correct time. It's situations like this which motivated me to make my own MutableTime class (that internally wraps changing Time objects). I never wrapped it up as a gem, but you can view the documentation and download it from: http://phrogz.net/RubyLibs/rdoc/files/MutableTime_rb.html (See the "Full Code" link on that page to download it.)