aggregate.rb: integrate month mode.