Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
bestouff
on July 23, 2024
|
parent
|
context
|
favorite
| on:
Jiff: Datetime library for Rust
Or even better:
let span = Span::days(5).hours(8).minutes(1);
burntsushi
on July 23, 2024
[–]
I believe this could actually not work. You would need a `fn days(n: i64) -> Span` and a `fn days(self, n: i64) -> Span` to exist at the same time, which Rust does not allow.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: