[#BloombergLP-bdlt-PackedCalendar-addHolidayIfInRange] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/PackedCalendar.adoc[PackedCalendar]::addHolidayIfInRange :relfileprefix: ../../../ :mrdocs: Mark the specified `date` as a holiday (i.e., a non‐business day) in this calendar if `date` is within the valid range. Return 0 if `date` is in range, and a non‐zero value otherwise. This method has no effect if `date` is already marked as a holiday or is not in the valid range. See {Iterator Invalidation} for information regarding which iterators are affected by the use of this method. == Synopsis Declared in `<bdlt_packedcalendar.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int addHolidayIfInRange(xref:BloombergLP/bdlt/Date.adoc[Date] const& date); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#