[#BloombergLP-bbldc-BasicDayCount]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bbldc.adoc[bbldc]::BasicDayCount
:relfileprefix: ../../
:mrdocs:

This `class` provides a protocol for determining values based on dates according to derived implementations of specific day&hyphen;count conventions&period;

== Synopsis

Declared in `&lt;bbldc&lowbar;basicdaycount&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class BasicDayCount;
----

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bbldc/BasicDayCount/2destructor.adoc[`&#126;BasicDayCount`] [.small]#[destructor]# [.small]#[virtual]#
| Destroy this object&period;
| xref:BloombergLP/bbldc/BasicDayCount/daysDiff.adoc[`daysDiff`]  [.small]#[virtual]#
| Return the (signed) number of days between two dates&period;
| xref:BloombergLP/bbldc/BasicDayCount/yearsDiff.adoc[`yearsDiff`]  [.small]#[virtual]#
| Return the (signed fractional) number of years between two dates&period;
|===


== Derived Classes

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bbldc/BasicBasicDayCountAdapter.adoc[`BasicBasicDayCountAdapter`] 
| This `class` provides an adapter from `CONVENTION` to `bbldc&colon;&colon;BasicDayCount`&period;
| xref:BloombergLP/bbldc/TerminatedBasicDayCountAdapter.adoc[`TerminatedBasicDayCountAdapter`] 
| This `class` provides an adapter from `CONVENTION` to `bbldc&colon;&colon;BasicDayCount`&period;
|===


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