[#BloombergLP-bdlt-Time-addTime]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/Time.adoc[Time]::addTime
:relfileprefix: ../../../
:mrdocs:

Add the specified signed time fields&semi; return midnight&hyphen;boundary crossings&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
addTime(
    int hours,
    int minutes = 0,
    int seconds = 0,
    int milliseconds = 0,
    xref:BloombergLP/bsls/Types/Int64.adoc[bsls::Types::Int64] microseconds = 0);
----

== Description

Add to the value of this time object the specified (signed) number of `hours`, and the optionally specified (signed) numbers of `minutes`, `seconds`, `milliseconds`, and `microseconds`&semi; return the (signed) number of times that the 23&colon;59&colon;59&period;999999 &hyphen; 00&colon;00&colon;00&period;000000 boundary was crossed in performing the operation&period; Unspecified arguments default to 0&period;

== Return Value

the (signed) number of midnight&hyphen;boundary crossings

== Parameters

[cols="1,4"]
|===
| Name| Description
| *hours*
| signed number of hours to add
| *minutes*
| signed number of minutes to add (default 0)
| *seconds*
| signed number of seconds to add (default 0)
| *milliseconds*
| signed number of milliseconds to add (default 0)
| *microseconds*
| signed number of microseconds to add (default 0)
|===


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