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

Add the specified number of `microseconds` if the result is valid&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
addMicrosecondsIfValid(xref:BloombergLP/bsls/Types/Int64.adoc[bsls::Types::Int64] microseconds);
----

== Description

Add to this time interval the specified number of `microseconds`&period; Return 0 if the resulting time interval value is valid (i&period;e&period;, the days field must not overflow an `int`) and a non&hyphen;zero value (with no effect) otherwise&period;

== Return Value

0 on success, and a non&hyphen;zero value (with no effect) otherwise

== Parameters

[cols="1,4"]
|===
| Name| Description
| *microseconds*
| microseconds to add
|===


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