[#BloombergLP-baltzo-TimeZoneUtil-convertLocalToLocalTime-01]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/baltzo.adoc[baltzo]::xref:BloombergLP/baltzo/TimeZoneUtil.adoc[TimeZoneUtil]::convertLocalToLocalTime
:relfileprefix: ../../../
:mrdocs:

`convertLocalToLocalTime` overloads

== Synopses

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

Convert between `bdlt&colon;&colon;DatetimeTz` values&semi; see the primary `convertLocalToLocalTime` overload&period;


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

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

Convert to a `bdlt&colon;&colon;DatetimeTz` result&semi; see the primary `convertLocalToLocalTime` overload&period;


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

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

Convert using a `bdlt&colon;&colon;DatetimeTz` source&semi; see the primary `convertLocalToLocalTime` overload&period;


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

[.small]#xref:BloombergLP/baltzo/TimeZoneUtil/convertLocalToLocalTime-0e.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 local time indicated by the specified `srcTime`&period; The offset from UTC of both time zones 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/convertLocalToLocalTime-0b.adoc[convertLocalToLocalTime](
    xref:BloombergLP/baltzo/LocalDatetime.adoc[LocalDatetime]* result,
    char const* targetTimeZoneId,
    xref:BloombergLP/baltzo/LocalDatetime.adoc[LocalDatetime] const& srcTime);
----

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

Convert to a `bdlt&colon;&colon;DatetimeTz` result&semi; see the primary `convertLocalToLocalTime` overload with source time zone&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
xref:BloombergLP/baltzo/TimeZoneUtil/convertLocalToLocalTime-0d.adoc[convertLocalToLocalTime](
    xref:BloombergLP/bdlt/DatetimeTz.adoc[bdlt::DatetimeTz]* result,
    char const* targetTimeZoneId,
    xref:BloombergLP/bdlt/Datetime.adoc[bdlt::Datetime] const& srcTime,
    char const* srcTimeZoneId,
    xref:BloombergLP/baltzo/DstPolicy/Enum.adoc[DstPolicy::Enum] dstPolicy = DstPolicy&colon;&colon;e&lowbar;UNSPECIFIED);
----

[.small]#xref:BloombergLP/baltzo/TimeZoneUtil/convertLocalToLocalTime-0d.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 local time indicated by the specified `srcTime` (in the time zone indicated by the specified `srcTimeZoneId`)&period; Optionally specify a `dstPolicy` indicating whether or not `srcTime` represents a daylight&hyphen;saving time value&period; If `dstPolicy` is unspecified and `srcTime` is a unique and valid time in the source time zone, then perform the conversion using that uniquely described time&semi; if `dstPolicy` is unspecified and `srcTime` is either ambiguous or invalid, then use the later of the two possible interpretations of `srcTime`&period; The offset from UTC of both time zones 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 either `targetTimeZoneId` or `srcTimeZoneId` was not recognized&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
xref:BloombergLP/baltzo/TimeZoneUtil/convertLocalToLocalTime-06.adoc[convertLocalToLocalTime](
    xref:BloombergLP/baltzo/LocalDatetime.adoc[LocalDatetime]* result,
    char const* targetTimeZoneId,
    xref:BloombergLP/bdlt/Datetime.adoc[bdlt::Datetime] const& srcTime,
    char const* srcTimeZoneId,
    xref:BloombergLP/baltzo/DstPolicy/Enum.adoc[DstPolicy::Enum] dstPolicy = DstPolicy&colon;&colon;e&lowbar;UNSPECIFIED);
----

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


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