[#BloombergLP-balber-BerUtil_TimezoneOffsetImpUtil] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balber.adoc[balber]::BerUtil_TimezoneOffsetImpUtil :relfileprefix: ../../ :mrdocs: This component‐private utility `struct` provides a namespace for a suite of functions and constants used by `BerUtil` to encode and decode time‐zone values. == Synopsis Declared in `<balber_berutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct BerUtil_TimezoneOffsetImpUtil; ---- == Enums [cols="1,4"] |=== | Name| Description | xref:BloombergLP/balber/BerUtil_TimezoneOffsetImpUtil/_04enum.adoc[`Unnamed enum`] | Constants related to time‐zone offset encoding. |=== == Static Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/balber/BerUtil_TimezoneOffsetImpUtil/getTimezoneOffsetInMinutes.adoc[`getTimezoneOffsetInMinutes`] | Read from the specified `streamBuf` and load to the specified `value` of the time‐zone offset. | xref:BloombergLP/balber/BerUtil_TimezoneOffsetImpUtil/getTimezoneOffsetInMinutesIfValid.adoc[`getTimezoneOffsetInMinutesIfValid`] | Read a time zone offset value from the specified `streamBuf`. If the offset is greater than or equal to `k_MIN_OFFSET` and less than or equal to `k_MAX_OFFSET` then load the value of the offset to the specified `value` and return zero, otherwise do not modify the value addressed by `value` and return non‐zero. | xref:BloombergLP/balber/BerUtil_TimezoneOffsetImpUtil/isValidTimezoneOffsetInMinutes.adoc[`isValidTimezoneOffsetInMinutes`] | Return `true` if the specified `value` is a valid time‐zone offset, and return `false` otherwise. A time‐zone offset is valid if it is greater than or equal to `k_MIN_OFFSET` and less than or equal to `k_MAX_OFFSET`. | xref:BloombergLP/balber/BerUtil_TimezoneOffsetImpUtil/putTimezoneOffsetInMinutes.adoc[`putTimezoneOffsetInMinutes`] | Write to the specified `streamBuf` the value of the specified time‐zone offset `value`. The behavior is undefined unless `k_MIN_OFFSET <= value` and `value <= k_MAX_OFFSET`. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#