Clean the timedef_to_seconds function and use it for campaign info.