[#BloombergLP-balber-BerUtil_Iso8601ImpUtil-putDatetimeTzValue]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balber.adoc[balber]::xref:BloombergLP/balber/BerUtil_Iso8601ImpUtil.adoc[BerUtil&lowbar;Iso8601ImpUtil]::putDatetimeTzValue
:relfileprefix: ../../../
:mrdocs:

Write the ISO 8601 representation of the specified `value` to the output sequence of the specified `streamBuf`&period; If the specified `options` is 0, use 3 decimal places of fractional second precision, otherwise use the number of decimal places specified by the `datetimeFractionalSecondPrecision` attribute of the `options`&period; Return 0 on success and a non&hyphen;zero value otherwise&period; The operation succeeds if all bytes of the ISO 8601 representation of the `value` are written to the `streamBuf` without the write position becoming unavailable&period;

== Synopsis

Declared in `&lt;balber&lowbar;berutil&period;h&gt;`

[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]#
