Skip to main content

encode_datetime2

Function encode_datetime2 

Source
pub fn encode_datetime2(
    datetime: NaiveDateTime,
    buf: &mut BytesMut,
) -> Result<(), TypeError>
Expand description

Encode a DATETIME2 value.

DATETIME2 is encoded as TIME followed by DATE.

ยงErrors

Returns an error if the date portion is outside the DATE range; see encode_date.