update time data structure