[#BloombergLP-baltzo-ZoneinfoUtil-convertUtcToLocalTime]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/baltzo.adoc[baltzo]::xref:BloombergLP/baltzo/ZoneinfoUtil.adoc[ZoneinfoUtil]::convertUtcToLocalTime
:relfileprefix: ../../../
:mrdocs:

Load, into the specified `resultTime`, the local date&hyphen;time value, in the specified `timeZone`, corresponding to the specified `utcTime`, and load, into the specified `resultTransition`, an iterator referring to the first transition in `timeZone` whose transition&hyphen;time is before `utcTime`&period; Return 0 on success, and `baltzo&colon;&colon;ErrorCode&colon;&colon;k&lowbar;OUT&lowbar;OF&lowbar;RANGE` if `resultTime` would be outside of the legal range that a `bdlt&colon;&colon;DatetimeTz` can represent&period; The behavior is undefined unless `isWellFormed(timeZone)` is `true`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
convertUtcToLocalTime(
    xref:BloombergLP/bdlt/DatetimeTz.adoc[bdlt::DatetimeTz]* resultTime,
    xref:BloombergLP/baltzo/Zoneinfo/TransitionConstIterator.adoc[Zoneinfo::TransitionConstIterator]* resultTransition,
    xref:BloombergLP/bdlt/Datetime.adoc[bdlt::Datetime] const& utcTime,
    xref:BloombergLP/baltzo/Zoneinfo.adoc[Zoneinfo] const& timeZone);
----


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