[#BloombergLP-bdlt-Timetable-addTransition-01] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/Timetable.adoc[Timetable]::addTransition :relfileprefix: ../../../ :mrdocs: Add or replace a transition on `date` at `time` with `code`. == Synopsis Declared in `<bdlt_timetable.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void addTransition( xref:BloombergLP/bdlt/Date.adoc[Date] const& date, xref:BloombergLP/bdlt/Time.adoc[Time] const& time, int code); ---- == Description Add a transition to this timetable on the specified `date` at the specified `time` having the specified `code`. If `time` is already a transition point on `date`, replace the existing code with `code`. The addition of a transition, but not the replacement of the code of an existing transition, invalidates all iterators. The behavior is undefined unless `24 > time.hour()`, `date` is within the valid range of this timetable, and `0 <= code || k_UNSET_TRANSITION_CODE == code`. == Parameters [cols="1,4"] |=== | Name| Description | *date* | date of the transition | *time* | time of the transition | *code* | transition code |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#