improve time_format