[#BloombergLP-bdlt-Timetable-addTransition-06]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/Timetable.adoc[Timetable]::addTransition
:relfileprefix: ../../../
:mrdocs:

`addTransition` overloads

== Synopses

Declared in `&lt;bdlt&lowbar;timetable&period;h&gt;`

Add a transition to this timetable at the specified `datetime` having the specified `code`&period; If `datetime` is already a transition point, replace the existing code with `code`&period; The addition of a transition, but not the replacement of the code of an existing transition, invalidates all iterators&period; The behavior is undefined unless `24 &gt; datetime&period;hour()`, `datetime&period;date()` is within the valid range of this timetable, and `0 &lt;&equals; code &verbar;&verbar; k&lowbar;UNSET&lowbar;TRANSITION&lowbar;CODE &equals;&equals; code`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:BloombergLP/bdlt/Timetable/addTransition-08.adoc[addTransition](
    xref:BloombergLP/bdlt/Datetime.adoc[Datetime] const& datetime,
    int code);
----

[.small]#xref:BloombergLP/bdlt/Timetable/addTransition-08.adoc[_» more&period;&period;&period;_]#

Add a transition to this timetable on the specified `date` at the specified `time` having the specified `code`&period; If `time` is already a transition point on `date`, replace the existing code with `code`&period; The addition of a transition, but not the replacement of the code of an existing transition, invalidates all iterators&period; The behavior is undefined unless `24 &gt; time&period;hour()`, `date` is within the valid range of this timetable, and `0 &lt;&equals; code &verbar;&verbar; k&lowbar;UNSET&lowbar;TRANSITION&lowbar;CODE &equals;&equals; code`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:BloombergLP/bdlt/Timetable/addTransition-01.adoc[addTransition](
    xref:BloombergLP/bdlt/Date.adoc[Date] const& date,
    xref:BloombergLP/bdlt/Time.adoc[Time] const& time,
    int code);
----

[.small]#xref:BloombergLP/bdlt/Timetable/addTransition-01.adoc[_» more&period;&period;&period;_]#


[.small]#Created with https://www.mrdocs.com[MrDocs]#
