finish parse the time and config file