[#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 `<baltzo_timezoneutil.h>` Convert between `bdlt::DatetimeTz` values; see the primary `convertLocalToLocalTime` overload. [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..._]# Convert to a `bdlt::DatetimeTz` result; see the primary `convertLocalToLocalTime` overload. [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..._]# Convert using a `bdlt::DatetimeTz` source; see the primary `convertLocalToLocalTime` overload. [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..._]# Load, into the specified `result`, the local date‐time value (in the time zone indicated by the specified `targetTimeZoneId`) corresponding to the local time indicated by the specified `srcTime`. The offset from UTC of both time zones is rounded down to minute precision. Return 0 on success, and a non‐zero value with no effect otherwise. A return value of `ErrorCode::k_UNSUPPORTED_ID` indicates that `targetTimeZoneId` was not recognized, and a return value of `ErrorCode::k_OUT_OF_RANGE` indicates that the result of the operation would have been outside the range of values representable by the `result` type. [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..._]# Convert to a `bdlt::DatetimeTz` result; see the primary `convertLocalToLocalTime` overload with source time zone. [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::e_UNSPECIFIED); ---- [.small]#xref:BloombergLP/baltzo/TimeZoneUtil/convertLocalToLocalTime-0d.adoc[_» more..._]# Load, into the specified `result`, the local date‐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`). Optionally specify a `dstPolicy` indicating whether or not `srcTime` represents a daylight‐saving time value. 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; if `dstPolicy` is unspecified and `srcTime` is either ambiguous or invalid, then use the later of the two possible interpretations of `srcTime`. The offset from UTC of both time zones is rounded down to minute precision. Return 0 on success, and a non‐zero value with no effect otherwise. A return value of `ErrorCode::k_UNSUPPORTED_ID` indicates that either `targetTimeZoneId` or `srcTimeZoneId` was not recognized. [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::e_UNSPECIFIED); ---- [.small]#xref:BloombergLP/baltzo/TimeZoneUtil/convertLocalToLocalTime-06.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#