Create time_array