BloombergLP::bdlt::Timetable::transitionCodeInEffect

Return the transition code in effect at date and time.

Synopsis

Declared in <bdlt_timetable.h>

int
transitionCodeInEffect(
    Date const& date,
    Time const& time) const;

Description

Return the transition code associated with the latest transition that occurs on or before the specified date and time in this timetable. If this timetable has no such transition, return initialTransitionCode(). The behavior is undefined unless 24 > time.hour() and date is within the valid range of this timetable.

Return Value

transition code in effect at that datetime

Parameters

NameDescription
datecalendar date to query
timetime of day to query