Encode a datetime in ISO 8601 form to streamBuf.
Synopsis
Declared in <balber_berutil.h>
static
int
putDatetimeValue(
std::streambuf* streamBuf,
bdlt::Datetime const& value,
BerEncoderOptions const* options);
Description
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. Return 0 on success and a non‐zero value otherwise. 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.
Return Value
0 on success, and a non‐zero value otherwise
Parameters
Name |
Description |
streamBuf |
output stream buffer |
value |
value to encode |
options |
encoder options (0 for defaults) |
Created with MrDocs