4 ms·
I think this crate should be used now https://time-rs.github.io/time/index.html https://time-rs.github.io/time/index.html
by rofrol 6y ago
I think this crate should be used now https://time-rs.github.io/time/index.html https://time-rs.github.io/time/index.html
- dthul 6y agoI haven't heard of it before! Do you know what sets it apart from chrono? It doesn't mention anything in the readme as far as I can tell.
- lifthrasiir 6y agoThe biggest difference between time-rs and Chrono to me is the inlined time zone type parameter. Chrono's `DateTime<FixedOffset>` is called `OffsetDateTime` in time-rs. The intention was to be able to specialize `DateTime` to the permanent UTC time zone and avoid any offset calculation, but this idea has never caught on. Also time-rs has a luxury of procedural macros which didn't exist when Chrono was first designed.