[#BloombergLP-balber-BerUtil_DatetimeImpUtil-putDatetimeTzValue] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balber.adoc[balber]::xref:BloombergLP/balber/BerUtil_DatetimeImpUtil.adoc[BerUtil_DatetimeImpUtil]::putDatetimeTzValue :relfileprefix: ../../../ :mrdocs: Write a representation of the specified `value` date, time, and time zone to the output sequence of the specified `streamBuf` according to the specified `options`. If `options` is 0, the default set of options is used. Return 0 on success, and a non‐zero value otherwise. This operation succeeds if all bytes in the representation of the `value` are written to the output sequence of the `streamBuf` without the write position becoming unavailable. See the class documentation for a description of the default options. See the package‐level documentation of {`balber`} for a description of the decision procedure used to select an encoding format for the `value`. == Synopsis Declared in `<balber_berutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static int putDatetimeTzValue( std::streambuf* streamBuf, xref:BloombergLP/bdlt/DatetimeTz.adoc[bdlt::DatetimeTz] const& value, xref:BloombergLP/balber/BerEncoderOptions.adoc[BerEncoderOptions] const* options); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#