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

Rename all Duration to TimeDelta #76

Closed
fsktom opened this issue Mar 27, 2024 · 1 comment
Closed

Rename all Duration to TimeDelta #76

fsktom opened this issue Mar 27, 2024 · 1 comment
Assignees
Labels

Comments

@fsktom
Copy link
Owner

fsktom commented Mar 27, 2024

In chrono (currently, 0.4.35) Duration is just a type alias for TimeDelta (see chronotope/chrono#1137 (comment))

I think it'd be better if I use the actual struct name instead of its alias (also to differentiate it from std's Duration)

@fsktom
Copy link
Owner Author

fsktom commented Jun 20, 2024

https://docs.rs/chrono/0.4.38/chrono/index.html#time-delta--duration

The TimeDelta type was previously named Duration (and is still available as a type alias with that name). A notable difference with the similar core::time::Duration is that it is a signed value instead of unsigned.

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

No branches or pull requests

1 participant