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

Add transitions at `time` with `code` on `dayOfWeek` dates in range&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
addTransitions(
    xref:BloombergLP/bdlt/DayOfWeek/Enum.adoc[DayOfWeek::Enum] const& dayOfWeek,
    xref:BloombergLP/bdlt/Time.adoc[Time] const& time,
    int code,
    xref:BloombergLP/bdlt/Date.adoc[Date] const& firstDate,
    xref:BloombergLP/bdlt/Date.adoc[Date] const& lastDate);
----

== Description

Add transitions to this timetable that occur at the specified `time`, having the specified `code`, on all dates that are of the specified `dayOfWeek` within the closed interval of dates from the specified `firstDate` to the specified `lastDate`&period; For every date on which this transition will occur, if `time` 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; time&period;hour()`, `firstDate &lt;&equals; lastDate`, `firstDate` and `lastDate` are 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;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *dayOfWeek*
| day of week on which to add transitions
| *time*
| time of day of each added transition
| *code*
| transition code
| *firstDate*
| first date of the closed interval
| *lastDate*
| last date of the closed interval
|===


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