[#BloombergLP-bdlt-Timetable-transitionCodeInEffect-09e] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/Timetable.adoc[Timetable]::transitionCodeInEffect :relfileprefix: ../../../ :mrdocs: Return the transition code in effect at `datetime`. == Synopsis Declared in `<bdlt_timetable.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int transitionCodeInEffect(xref:BloombergLP/bdlt/Datetime.adoc[Datetime] const& datetime) const; ---- == Description Return the transition code associated with the latest transition that occurs on or before the specified `datetime` in this timetable. If this timetable has no such transition, return `initialTransitionCode()`. The behavior is undefined unless `24 > datetime.hour()` and `datetime.date()` is within the valid range of this timetable. == Return Value transition code in effect at `datetime` == Parameters [cols="1,4"] |=== | Name| Description | *datetime* | datetime to query |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#