Skip to content
Snippets Groups Projects
  • David Douard's avatar
    777ea186
    Encode datetime as Timestamp in msgpack · 777ea186
    David Douard authored
    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.
    777ea186
    History
    Encode datetime as Timestamp in msgpack
    David Douard authored
    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.