Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MessagePack spec version 2.1 has Timestamp type #76

Open
kawanet opened this issue Aug 10, 2017 · 4 comments
Open

MessagePack spec version 2.1 has Timestamp type #76

kawanet opened this issue Aug 10, 2017 · 4 comments

Comments

@kawanet
Copy link
Owner

kawanet commented Aug 10, 2017

https://github.com/msgpack/msgpack/blob/master/spec.md#formats-timestamp

Timestamp extension type is assigned to extension type -1. It defines 3 formats: 32-bit format, 64-bit format, and 96-bit format.

http://frsyuki.hatenablog.com/entry/2017/08/10/144310 (Japanese only)

@mattbishop
Copy link

Is there a PR for this? I'd love to have this new type in msgpack-lite

@kawanet
Copy link
Owner Author

kawanet commented Nov 24, 2017

WIP

@kawanet
Copy link
Owner Author

kawanet commented Nov 27, 2017

I'm coming almost close: Timestamp for 64-bit time_t, nanosecond precision and strftime
https://www.npmjs.com/package/timestamp-nano

I could rarely find any other msgpack libraries which support the new ext type -1.
Here is a C library not merged yet though.
ludocode/mpack@1d5e7edbe9

@mattbishop do you know any library that have tests for the type -1?

@mattbishop
Copy link

I don't know of any but other lib authors will follow your lead. Have you done beta releases of Msgpack before? Might be a good way to get the feature into the public space and trigger others to add their own implementations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants