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

Set the &quot;minute&quot; attribute of this time object to the specified `minute` _if_ `0 &lt;&equals; minute &lt; 60`&semi; if the `hour` attribute is 24, set the `hour` attribute to 0&period; Return 0 on success, and a non&hyphen;zero value (with no effect) otherwise&period;

== Synopsis

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

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


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