Change times to cycles