Skip to content

Commit

Permalink
add note about naive/aware timestamps to README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
vsergeev committed Mar 4, 2019
1 parent 64dfc38 commit ec7077e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,7 @@ If a non-byte-string argument is passed to `umsgpack.unpackb()`, it will raise a
* Python float types are packed into the msgpack float32 or float64 format depending on the system's `sys.float_info`
* The Python `datetime.datetime` type is packed into, and unpacked from, the msgpack `timestamp` format
* Note that this Python type only supports microsecond resolution, while the msgpack `timestamp` format supports nanosecond resolution. Timestamps with finer than microsecond resolution will lose precision during unpacking. Users may override the packing and unpacking of the msgpack `timestamp` format with a custom type for alternate behavior.
* Both naive and aware timestamp are supported. Naive timestamps are packed as if they are in the UTC timezone. Timestamps are always unpacked as aware `datetime.datetime` objects in the UTC timezone.

## Testing

Expand Down

0 comments on commit ec7077e

Please sign in to comment.