[#BloombergLP-bdlt-Datetime-setMicrosecondIfValid] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/Datetime.adoc[Datetime]::setMicrosecondIfValid :relfileprefix: ../../../ :mrdocs: Set the "microsecond" attribute of this object to the specified `microsecond` value if `0 <= microsecond <= 999`. If `24 == hour()`, set the `hour` attribute to 0. Return 0 on success, and a non‐zero value (with no effect) otherwise. Note that this method has no effect on the "date" part of this object. == Synopsis Declared in `<bdlt_datetime.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int setMicrosecondIfValid(int microsecond); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#