[#BloombergLP-baltzo-TimeZoneUtil-convertLocalToLocalTime-0d] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/baltzo.adoc[baltzo]::xref:BloombergLP/baltzo/TimeZoneUtil.adoc[TimeZoneUtil]::convertLocalToLocalTime :relfileprefix: ../../../ :mrdocs: Convert to a `bdlt::DatetimeTz` result; see the primary `convertLocalToLocalTime` overload with source time zone. == Synopsis Declared in `<baltzo_timezoneutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static int 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::e_UNSPECIFIED); ---- == Return Value 0 on success, and a non‐zero value otherwise == Parameters [cols="1,4"] |=== | Name| Description | *result* | receives the converted local date‐time | *targetTimeZoneId* | identifier of the destination time zone | *srcTime* | local date‐time in the source time zone | *srcTimeZoneId* | identifier of the source time zone | *dstPolicy* | daylight‐saving policy for interpreting `srcTime` |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#