[#BloombergLP-balber-BerUtil_TimeImpUtil-getTimeOrTimeTzValue]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balber.adoc[balber]::xref:BloombergLP/balber/BerUtil_TimeImpUtil.adoc[BerUtil&lowbar;TimeImpUtil]::getTimeOrTimeTzValue
:relfileprefix: ../../../
:mrdocs:

Read the specified `length` number of bytes from the input sequence of the specified `streamBuf` and load to the specified `value` the time and optional time zone value represented by those bytes&period; Return 0 on success, and a non&hyphen;zero value otherwise&period; The operation succeeds if `length` bytes are successfully read from the input sequence of the `streamBuf` without the read position becoming unavailable, and the bytes contain a valid representation of a time and optional time zone value&period; See the package&hyphen;level documentation of &lcub;`balber`&rcub; for a description of the decision procedure used to detect the encoding format for a `TimeOrTimeTz` value&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
getTimeOrTimeTzValue(
    xref:BloombergLP/balber/BerUtil_TimeImpUtil/TimeOrTimeTz.adoc[TimeOrTimeTz]* value,
    std::streambuf* streamBuf,
    int length);
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
