pretty time for api