Create a Timetable_CompactableTransition having the specified time and code. The behavior is undefined unless 24 > time.hour() and 0 <= code || k_UNSET_TRANSITION_CODE == code.