[#BloombergLP-baltzo-TimeZoneUtil-convertUtcToLocalTime-0ec]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/baltzo.adoc[baltzo]::xref:BloombergLP/baltzo/TimeZoneUtil.adoc[TimeZoneUtil]::convertUtcToLocalTime
:relfileprefix: ../../../
:mrdocs:

`convertUtcToLocalTime` overloads

== Synopses

Declared in `&lt;baltzo&lowbar;timezoneutil&period;h&gt;`

Load a `bdlt&colon;&colon;DatetimeTz` result&semi; see `convertUtcToLocalTime` for `LocalDatetime`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
xref:BloombergLP/baltzo/TimeZoneUtil/convertUtcToLocalTime-01.adoc[convertUtcToLocalTime](
    xref:BloombergLP/bdlt/DatetimeTz.adoc[bdlt::DatetimeTz]* result,
    char const* targetTimeZoneId,
    xref:BloombergLP/bdlt/Datetime.adoc[bdlt::Datetime] const& utcTime);
----

[.small]#xref:BloombergLP/baltzo/TimeZoneUtil/convertUtcToLocalTime-01.adoc[_» more&period;&period;&period;_]#

Load, into the specified `result`, the local date&hyphen;time value (in the time zone indicated by the specified `targetTimeZoneId`) corresponding to the specified `utcTime`&period; The offset from UTC of the time zone is rounded down to minute precision&period; Return 0 on success, and a non&hyphen;zero value with no effect otherwise&period; A return value of `ErrorCode&colon;&colon;k&lowbar;UNSUPPORTED&lowbar;ID` indicates that `targetTimeZoneId` was not recognized, and a return value of `ErrorCode&colon;&colon;k&lowbar;OUT&lowbar;OF&lowbar;RANGE` indicates that the result of the operation would have been outside the range of values representable by the `result` type&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
xref:BloombergLP/baltzo/TimeZoneUtil/convertUtcToLocalTime-0e0.adoc[convertUtcToLocalTime](
    xref:BloombergLP/baltzo/LocalDatetime.adoc[LocalDatetime]* result,
    char const* targetTimeZoneId,
    xref:BloombergLP/bdlt/Datetime.adoc[bdlt::Datetime] const& utcTime);
----

[.small]#xref:BloombergLP/baltzo/TimeZoneUtil/convertUtcToLocalTime-0e0.adoc[_» more&period;&period;&period;_]#


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