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

Name

Description

date

calendar date to query

time

time of day to query

Created with MrDocs