BloombergLP::bdlt::Calendar::getNextBusinessDay

getNextBusinessDay overloads

Synopses

Declared in <bdlt_calendar.h>

Return the first business day following initialDate.

Date
getNextBusinessDay(Date const& initialDate) const;
» more...

Return the nth business day following initialDate.

Date
getNextBusinessDay(
    Date const& initialDate,
    int nth) const;
» more...

Load the first business day after date into nextBusinessDay.

int
getNextBusinessDay(
    Date* nextBusinessDay,
    Date const& date) const;
» more...

Load the nth business day after date into nextBusinessDay.

int
getNextBusinessDay(
    Date* nextBusinessDay,
    Date const& date,
    int nth) const;
» more...

Return Value

  • the first business day following initialDate
  • the nth business day following initialDate
  • 0 on success, and a non-zero value otherwise

Parameters

NameDescription
initialDatedate after which to find a business day
nthone-based count of business days to advance
nextBusinessDayreceives the next business day on success
datedate after which to find a business day