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

Return or load into the specified `result` the value of the specified `datetime` expressed as a `bsl&colon;&colon;tm`&period; Each field in the result is set to its proper value except `tm&lowbar;isdst`, which is set to `&hyphen;1` to indicate that no information on daylight saving time is available&period; A time value of 24&colon;00&colon;00&colon;00 will be converted to 0&colon;00&colon;00&period; Note that time zones are irrelevant for this conversion&period;

== Synopses

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

Return or load into the specified `result` the value of the specified `datetime` expressed as a `bsl&colon;&colon;tm`&period; Each field in the result is set to its proper value except `tm&lowbar;isdst`, which is set to `&hyphen;1` to indicate that no information on daylight saving time is available&period; A time value of 24&colon;00&colon;00&colon;00 will be converted to 0&colon;00&colon;00&period; Note that time zones are irrelevant for this conversion&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;_]#


[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;_]#


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