HomeSoftware Heritage

Encode datetime as Timestamp in msgpack

Description

Encode datetime as Timestamp in msgpack

decoding custom format is still supported for backward compat.

Note that this revision modifies the exception type raised when attempting to
encode a naive datetime object for both formats (json amd msgpack): it now
raises a TypeError instead of a ValueError.

Details

Provenance
douarddaAuthored on Dec 11 2020, 9:33 AM
douarddaPushed on Dec 11 2020, 10:09 AM
Differential Revision
D4690: Encode datetime as Timestamp in msgpack
Parents
rDCOREe722afbf82e3: Split serializers ENCODERS/DECODERS to extract JSON specific ones
Branches
Unknown
Tags
Unknown
Build Status
Buildable 17883
Build 27629: test-and-buildJenkins console · Jenkins