Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Rust's `time` crate does have separate types for these:

    https://docs.rs/time/latest/time/struct.OffsetDateTime.html
    https://docs.rs/time/latest/time/struct.PrimitiveDateTime.html
It's not as helpful as you'd think IME - timezoneless date times are suprisingly niche (at least as a useful tool to intentionally choose, rather than an accidental side effect of API choice.)


Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: