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

Load, into the specified `result`, the local date&hyphen;time value, in the time zone indicated by the specified `resultTimeZoneId`, corresponding to the specified `utcTime`, using time zone information supplied by the specified `cache`&period; Return 0 on success, and a non&hyphen;zero value otherwise&period; A return status of `ErrorCode&colon;&colon;k&lowbar;UNSUPPORTED&lowbar;ID` indicates that `resultTimeZoneId` is not recognized, and a return status of `ErrorCode&colon;&colon;k&lowbar;OUT&lowbar;OF&lowbar;RANGE` indicates that an out of range value of `result` would have occurred&period;

== Synopsis

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

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


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