[#BloombergLP-bdlt-Time-setSecondIfValid] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/Time.adoc[Time]::setSecondIfValid :relfileprefix: ../../../ :mrdocs: Set the "second" attribute of this time object to the specified `second` _if_ `0 <= second < 60`; if the `hour` attribute is 24, set the `hour` attribute to 0. Return 0 on success, and a non‐zero value (with no effect) otherwise. == Synopsis Declared in `<bdlt_time.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int setSecondIfValid(int second); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#