BloombergLP::bdlt::PackedCalendar::numBusinessDays

numBusinessDays overloads

Synopses

Declared in <bdlt_packedcalendar.h>

Return the number of days in the valid range of this calendar that are considered business days -- i.e., are neither holidays nor weekend days. Note that numBusinessDays() == length() - numNonBusinessDays().

int
numBusinessDays() const;
» more...

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.

int
numBusinessDays(
    Date const& beginDate,
    Date const& endDate) const;
» more...