[#BloombergLP-bdlt-PosixDateImpUtil-numLeapYears]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/PosixDateImpUtil.adoc[PosixDateImpUtil]::numLeapYears
:relfileprefix: ../../../
:mrdocs:

Return the number of leap years occurring between the specified `year1` and `year2` (inclusive)&period; The behavior is undefined unless `1 &lt;&equals; year1 &lt;&equals; 9999`, `1 &lt;&equals; year2 &lt;&equals; 9999`, and `year1 &lt;&equals; year2`&period;

== Synopsis

Declared in `&lt;bdlt&lowbar;posixdateimputil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
numLeapYears(
    int year1,
    int year2);
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
