switch time to be int64