[#BloombergLP-bdlt-ProlepticDateImpUtil-numLeapYears] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/ProlepticDateImpUtil.adoc[ProlepticDateImpUtil]::numLeapYears :relfileprefix: ../../../ :mrdocs: Return the number of leap years between `year1` and `year2`. == Synopsis Declared in `<bdlt_prolepticdateimputil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static int numLeapYears( int year1, int year2); ---- == Description Return the number of leap years occurring between the specified `year1` and `year2`, inclusive. The behavior is undefined unless `1 <= year1 <= 9999`, `1 <= year2 <= 9999`, and `year1 <= year2`. == Return Value number of leap years in `[year1 .. year2]` == Parameters [cols="1,4"] |=== | Name| Description | *year1* | first year of the inclusive range | *year2* | last year of the inclusive range |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#