[#BloombergLP-bdlt-Datetime-setMinuteIfValid] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/Datetime.adoc[Datetime]::setMinuteIfValid :relfileprefix: ../../../ :mrdocs: Set the minute attribute if it is in range. == Synopsis Declared in `<bdlt_datetime.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int setMinuteIfValid(int minute); ---- == Description Set the "minute" attribute of this object to the specified `minute` value if `0 <= minute <= 59`. 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. == Return Value 0 on success, and a non‐zero value otherwise == Parameters [cols="1,4"] |=== | Name| Description | *minute* | minute attribute to set |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#