[#BloombergLP-bdlt-Timetable-2constructor-0c]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/Timetable.adoc[Timetable]::Timetable
:relfileprefix: ../../../
:mrdocs:

Create a timetable with valid range `&lsqb;firstDate &period;&period; lastDate&rsqb;`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
Timetable(
    xref:BloombergLP/bdlt/Date.adoc[Date] const& firstDate,
    xref:BloombergLP/bdlt/Date.adoc[Date] const& lastDate,
    int initialTransitionCode = k&lowbar;UNSET&lowbar;TRANSITION&lowbar;CODE,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

== Description

Create a timetable having a valid range from the specified `firstDate` through the specified `lastDate` and having the optionally specified `initialTransitionCode`&period; If `initialTransitionCode` is not specified, the initial transition code is set to `k&lowbar;UNSET&lowbar;TRANSITION&lowbar;CODE`&period; Optionally specify a `basicAllocator` used to supply memory&period; If `basicAllocator` is 0, the currently installed default allocator is used&period; The behavior is undefined unless `firstDate &lt;&equals; lastDate`, and `0 &lt;&equals; initialTransitionCode` or `k&lowbar;UNSET&lowbar;TRANSITION&lowbar;CODE &equals;&equals; initialTransitionCode`&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *firstDate*
| first date of the valid range
| *lastDate*
| last date of the valid range
| *initialTransitionCode*
| initial transition code
| *basicAllocator*
| allocator used to supply memory
|===


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