[#BloombergLP-bdlt-DatetimeUtil-convertFromTm] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/DatetimeUtil.adoc[DatetimeUtil]::convertFromTm :relfileprefix: ../../../ :mrdocs: Load into the specified `result` the value of the specified `timeStruct`. Return 0 on success, and a non‐zero value with no effect on `result` if `timeStruct` is invalid or otherwise cannot be represented as a `Datetime`. Values in fields `tm_wday`, `tm_yday`, and `tm_isdst` are ignored. The time 24:00:00 will be recognized, and leap seconds (i.e., values in `tm_sec` of 60 or 61) which can otherwise be represented as a `Datetime` will cause the conversion to succeed with the `result` "rolling over" into the zeroth second of next minute. Note that time zones are irrelevant for this conversion. == Synopsis Declared in `<bdlt_datetimeutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static int convertFromTm( xref:BloombergLP/bdlt/Datetime.adoc[Datetime]* result, std::tm const& timeStruct); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#