[#BloombergLP-baltzo-TimeZoneUtil-addInterval] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/baltzo.adoc[baltzo]::xref:BloombergLP/baltzo/TimeZoneUtil.adoc[TimeZoneUtil]::addInterval :relfileprefix: ../../../ :mrdocs: Load, into the specified `result`, the local time value that is the specified `interval` in the future of the specified `originalTime` (in the time zone `originalTime.timeZoneId()`). 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. The resulting local‐time is equivalent to adding `interval` to `originalTime.datetimeTz().utcDatetime()` and converting the result into the local time of `originalTime.timeZoneId()`. == Synopsis Declared in `<baltzo_timezoneutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static int addInterval( xref:BloombergLP/baltzo/LocalDatetime.adoc[LocalDatetime]* result, xref:BloombergLP/baltzo/LocalDatetime.adoc[LocalDatetime] const& originalTime, xref:BloombergLP/bsls/TimeInterval.adoc[bsls::TimeInterval] const& interval); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#