This struct provides a namespace for utility functions that operate on dates in the context of supplied calendars.

Synopsis

Declared in <bdlt_calendarutil.h>

struct CalendarUtil;

Enums

Name

Description

ShiftConvention

Enumeration used to delineate various date‐shifting conventions.

Static Member Functions

Name

Description

addBusinessDaysIfValid

Add or subtract business days from original if valid.

nthBusinessDayOfMonthOrMaxIfValid

Load the `n`th business day of a month, or the furthest available.

shiftFollowingIfValid

Shift original to the next valid business day (following).

shiftIfValid

shiftIfValid overloads

shiftModifiedFollowingIfValid

Shift using modified‐following convention if valid.

shiftModifiedPrecedingIfValid

Shift original to the next valid business day (modified preceding).

shiftPrecedingIfValid

Shift original to the next valid business day (preceding).

subtractBusinessDaysIfValid

Subtract business days from original if valid.

Created with MrDocs