BloombergLP::bdlt::PackedCalendar::numBusinessDays

Return the number of business days in [beginDate .. endDate].

Synopsis

Declared in <bdlt_packedcalendar.h>

int
numBusinessDays(
    Date const& beginDate,
    Date const& endDate) const;

Description

Return the number of days in the specified range [beginDate .. endDate] of this calendar that are considered business days -- i.e., are neither holidays nor weekend days. The behavior is undefined unless beginDate and endDate are within the valid range of this calendar, and beginDate <= endDate.

Return Value

the number of business days in [beginDate .. endDate]

Parameters

NameDescription
beginDatefirst date of the queried range
endDatelast date of the queried range