+ age_file = age_file_name(now)
+ move_age_file_in_the_way(age_file)
+ unless Mkdir.mkdir_for(age_file)
+ @dev.write("[ERROR] Could not create a directory: %s\n" % [File.dirname(age_file)])
+ return true
+ end
+
+ @dev.close
+ rename_file(@filename, age_file)
+ @dev = create_logfile(@filename)
+ return true
+ end
+
+ def age_file_name(time)
+ postfix = previous_period_end(time).strftime("%Y%m%d") # YYYYMMDD