[#BloombergLP-bdlt-PackedCalendar-length] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/PackedCalendar.adoc[PackedCalendar]::length :relfileprefix: ../../../ :mrdocs: Return the number of days in the valid range of this calendar, which is defined to be 0 if this calendar is empty, and `lastDate() ‐ firstDate() + 1` otherwise. == Synopsis Declared in `<bdlt_packedcalendar.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int length() const; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#