[#BloombergLP-bdlt-DatetimeUtil-convertToTm-0a]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/DatetimeUtil.adoc[DatetimeUtil]::convertToTm
:relfileprefix: ../../../
:mrdocs:

`convertToTm` overloads

== Synopses

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

Return the value of the specified `datetime` expressed as a `bsl&colon;&colon;tm`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
std::tm
xref:BloombergLP/bdlt/DatetimeUtil/convertToTm-07.adoc[convertToTm](xref:BloombergLP/bdlt/Datetime.adoc[Datetime] const& datetime);
----

[.small]#xref:BloombergLP/bdlt/DatetimeUtil/convertToTm-07.adoc[_» more&period;&period;&period;_]#

Same as the preceding overload for the specified `datetime`, loading into the specified `result`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
void
xref:BloombergLP/bdlt/DatetimeUtil/convertToTm-02.adoc[convertToTm](
    std::tm* result,
    xref:BloombergLP/bdlt/Datetime.adoc[Datetime] const& datetime);
----

[.small]#xref:BloombergLP/bdlt/DatetimeUtil/convertToTm-02.adoc[_» more&period;&period;&period;_]#

== Return Value

corresponding `bsl&colon;&colon;tm` value

== Parameters

[cols="1,4"]
|===
| Name| Description
| *datetime*
| value to convert
| *result*
| destination for the converted `bsl&colon;&colon;tm`
|===


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