Load the JSON representation of a temporal value into json.
Declared in <baljsn_jsonformatter.h>
template<class TYPE>
static
int
setTemporalValueToJson(
bdljsn::Json* json,
TYPE const& value,
EncoderOptions const* options);
Optionally use the specified options (notably datetimeFractionalSecondPrecision). Return 0 on success and a non-zero value otherwise.
0 on success and a non-zero value otherwise
| Name | Description |
|---|---|
| json | JSON object to receive the encoded value |
| value | temporal value to encode |
| options | optional encoding options; null uses defaults |