▲ 26 ▼ A datetime library for Rust [jiff 1.0 released] (burntsushi.net) submitted 3 days ago by SorteKanin@feddit.dk to c/rust@programming.dev 13 comments fedilink hide all child comments
[–] Martineski@lemmy.dbzer0.com 6 points 3 days ago (6 children) Wait, what?! Chrono is phasing out? Shit. permalink fedilink source parent hideshow 6 child comments replies: [–] Matty_r@programming.dev 6 points 2 days ago (2 children) First I heard of it too, I had a look around and yea.. Looks like jiff is the new one to use. https://github.com/chronotope/chrono/issues/1768 I was worried that I'd see jiff was written by one person using AI but it actually looks like it has a decent variety of actual people contributing. I feel OK with having to move across in my projects eventually. https://github.com/BurntSushi/jiff permalink fedilink source parent hideshow 2 child comments replies: [–] chrash0@lemmy.world 3 points 2 days ago BurntSushi is an OG in the Rust community permalink fedilink source parent [–] Kissaki@programming.dev 2 points 2 days ago Quoting the relevant part: The API design for these crates is quite dated, revising it would be a lot of effort, and with jiff there is now an alternative I feel comfortable recommending. permalink fedilink source parent [–] BB_C@programming.dev 2 points 2 days ago (2 children) It will continue to work as before. It's not like it's going to disappear or anything 😄 permalink fedilink source parent hideshow 2 child comments replies: [–] chrash0@lemmy.world 1 point 2 days ago (1 child) not exactly. if you’re just using it standalone you can continue to do so. however, many libraries are downstream consumers of chrono, so if you have a dependency on one of those it would be best to move to whatever they replace it with (jiff does seem to be the “blessed” successor) permalink fedilink source parent hideshow 1 child comment replies: [–] BB_C@programming.dev 1 point 2 days ago it would be best The path of least resistance maybe. But as long as you get access to the timestamp (since epoch) from whatever detetime type used, you can do whatever you want. You can even use a third crate if you prefer. It's neither a big deal, nor does it take that much effort to do. And the timestamp is the only data you need on the wire to serialize for most use-cases, except for the few where you need to track time-zone changes alongside the timestamp. permalink fedilink source parent
[–] Matty_r@programming.dev 6 points 2 days ago (2 children) First I heard of it too, I had a look around and yea.. Looks like jiff is the new one to use. https://github.com/chronotope/chrono/issues/1768 I was worried that I'd see jiff was written by one person using AI but it actually looks like it has a decent variety of actual people contributing. I feel OK with having to move across in my projects eventually. https://github.com/BurntSushi/jiff permalink fedilink source parent hideshow 2 child comments replies: [–] chrash0@lemmy.world 3 points 2 days ago BurntSushi is an OG in the Rust community permalink fedilink source parent [–] Kissaki@programming.dev 2 points 2 days ago Quoting the relevant part: The API design for these crates is quite dated, revising it would be a lot of effort, and with jiff there is now an alternative I feel comfortable recommending. permalink fedilink source parent
[–] chrash0@lemmy.world 3 points 2 days ago BurntSushi is an OG in the Rust community permalink fedilink source parent
[–] Kissaki@programming.dev 2 points 2 days ago Quoting the relevant part: The API design for these crates is quite dated, revising it would be a lot of effort, and with jiff there is now an alternative I feel comfortable recommending. permalink fedilink source parent
[–] BB_C@programming.dev 2 points 2 days ago (2 children) It will continue to work as before. It's not like it's going to disappear or anything 😄 permalink fedilink source parent hideshow 2 child comments replies: [–] chrash0@lemmy.world 1 point 2 days ago (1 child) not exactly. if you’re just using it standalone you can continue to do so. however, many libraries are downstream consumers of chrono, so if you have a dependency on one of those it would be best to move to whatever they replace it with (jiff does seem to be the “blessed” successor) permalink fedilink source parent hideshow 1 child comment replies: [–] BB_C@programming.dev 1 point 2 days ago it would be best The path of least resistance maybe. But as long as you get access to the timestamp (since epoch) from whatever detetime type used, you can do whatever you want. You can even use a third crate if you prefer. It's neither a big deal, nor does it take that much effort to do. And the timestamp is the only data you need on the wire to serialize for most use-cases, except for the few where you need to track time-zone changes alongside the timestamp. permalink fedilink source parent
[–] chrash0@lemmy.world 1 point 2 days ago (1 child) not exactly. if you’re just using it standalone you can continue to do so. however, many libraries are downstream consumers of chrono, so if you have a dependency on one of those it would be best to move to whatever they replace it with (jiff does seem to be the “blessed” successor) permalink fedilink source parent hideshow 1 child comment replies: [–] BB_C@programming.dev 1 point 2 days ago it would be best The path of least resistance maybe. But as long as you get access to the timestamp (since epoch) from whatever detetime type used, you can do whatever you want. You can even use a third crate if you prefer. It's neither a big deal, nor does it take that much effort to do. And the timestamp is the only data you need on the wire to serialize for most use-cases, except for the few where you need to track time-zone changes alongside the timestamp. permalink fedilink source parent
[–] BB_C@programming.dev 1 point 2 days ago it would be best The path of least resistance maybe. But as long as you get access to the timestamp (since epoch) from whatever detetime type used, you can do whatever you want. You can even use a third crate if you prefer. It's neither a big deal, nor does it take that much effort to do. And the timestamp is the only data you need on the wire to serialize for most use-cases, except for the few where you need to track time-zone changes alongside the timestamp. permalink fedilink source parent