Hacker News new | past | comments | ask | show | jobs | submit
> I don't want to have a type for an integer in seconds, a type for an integer in minutes, a type for an integer in days, and so forth.

This is not how a typical Duration type works.

https://pkg.go.dev/time#Duration

https://doc.rust-lang.org/nightly/core/time/struct.Duration....

https://docs.rs/jiff/latest/jiff/struct.SignedDuration.html

loading story #42773239