3 ms·
I wrote the original implementation. One thing worth noting is that the implementation isn't globally extending `uint` with `.days()`. In order to write `2.day
by wycats 13y ago
I wrote the original implementation.
One thing worth noting is that the implementation isn't globally extending `uint` with `.days()`. In order to write `2.days()`, you need to first import the trait that provides the implementation.
From that perspective, it's not much different from importing a function like `days_from_now` that you call as `days_from_now(2)`.