aggregate.rb: alldate_scale and by_month.