Encode the specified value into JSON using ISO 8601 format and output the result to the specified stream using the specified options.

Synopsis

Declared in <baljsn_printutil.h>

template<class TYPE>
static
int
printDateAndTime(
    std::ostream& stream,
    TYPE const& value,
    EncoderOptions const* options);

Return Value

0 on success, and a non‐zero value otherwise

Parameters

Name

Description

stream

output stream for JSON

value

date/time value to encode

options

encoding options; null uses defaults

Created with MrDocs