BloombergLP::bdlt::CalendarUtil

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

NameDescription
ShiftConvention Enumeration used to delineate various date-shifting conventions.

Static Member Functions

NameDescription
addBusinessDaysIfValid Add or subtract business days from original if valid.
nthBusinessDayOfMonthOrMaxIfValid Load the nth 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.