15分毎に時間を丸める min - ( min % 15 ) min / 15 * 15 http://stackoverflow.com/questions/449271/how-to-round-a-time-down-to-the-nearest-15-minutes-in-ruby