[#BloombergLP-bdlt-Datetime-setSecond] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/Datetime.adoc[Datetime]::setSecond :relfileprefix: ../../../ :mrdocs: Set the "second" attribute of this object to the specified `second` value. If `24 == hour()`, set the `hour` attribute to 0. The behavior is undefined unless `0 <= second <= 59`. 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"] ---- void setSecond(int second); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#