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

Add serialize/deserialize adapters for chrono's Duration #56

Closed
jonasbb opened this issue May 16, 2019 · 3 comments
Closed

Add serialize/deserialize adapters for chrono's Duration #56

jonasbb opened this issue May 16, 2019 · 3 comments
Labels
enhancement New feature or request

Comments

@jonasbb
Copy link
Owner

jonasbb commented May 16, 2019

Similar issue exists here: chronotope/chrono#117

@Exr0n
Copy link

Exr0n commented May 4, 2020

Just wondering, any updates on this?

@jonasbb
Copy link
Owner Author

jonasbb commented May 6, 2020

Unfortunately no update yet. However, recently I made some progress for the std Duration (for example here). That should translate mostly to the chrono types too

bors bot added a commit that referenced this issue May 15, 2020
104: Add support for chrono::Duration r=jonasbb a=jonasbb

Part of #56

105: readme: fix a typo r=jonasbb a=mathstuf



Co-authored-by: Jonas Bushart <jonas@bushart.org>
Co-authored-by: Ben Boeckel <mathstuf@users.noreply.github.com>
@jonasbb
Copy link
Owner Author

jonasbb commented Aug 19, 2020

The latests version (1.5.0-alpha.2) can convert Durations into seconds, e.g., serde_with::DurationSeconds.
This will likely get extended for milliseconds and similar. Then for both std::time::Duration and chrono::Duration.

@jonasbb jonasbb closed this as completed Aug 19, 2020
@jonasbb jonasbb added the enhancement New feature or request label Dec 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants