time-rs / time

The most used Rust library for date and time handling.
https://time-rs.github.io
Apache License 2.0
1.09k stars 273 forks source link

Implement `NumericalDuration` for smaller types. #537

Closed reitermarkus closed 1 year ago

reitermarkus commented 1 year ago

Implement NumericalDuration for all types which can be converted to i64.

jhpratt commented 1 year ago

The extension traits are only intended to be called on integer literals. For this reason, it is a deliberate design choice. This is exemplified by the existing test suite failing when the change is made.