[#BloombergLP-bdlt-DatetimeInterval-hours]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/DatetimeInterval.adoc[DatetimeInterval]::hours
:relfileprefix: ../../../
:mrdocs:

Return the hours field in the canonical representation of the value of this time interval&period; Note that the return value may be negative&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
hours() const;
----

== Return Value

the hours field of this time interval


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