convert integers to time.Duration