move to Time class