I am using fake time to display in my UI. I am manipulating the time to be random like this.
date: Time.zone.now - (i % 9).days - rand(3).days - rand(2).hours + rand(60).minutes
However I would like to round to the nearest hour that is 3.35 pm becomes 3.30
do you know how I can do that?