News for hackers. Stuff that matters.
Re:Jiff 1.0: A datetime library for Rust by the__alchemist on Monday November 16, 2026 @04:46PM (#50523762)
Thanks to you both. I am giving benefit of doubt to those saying Jiff is even better, and I am trying Jiff today, but make no mistake: Chrono is by far, the best datetime library I've used. If Jiff ends up being people's #1, I hope they realize that Chrono is probably the #2 of any datetime library in existance. Thank you so much. It is dramatically better than Python's and JS's (official and unofficial) ones. I can rely on it for std and embedded tasks, and trust it to act as I expect.
Re:Jiff 1.0: A datetime library for Rust by BrandoElFollito on Monday November 16, 2026 @06:01PM (#50524770)
Why is it so much better than, say, Arrow?
Re:Jiff 1.0: A datetime library for Rust by the__alchemist on Monday November 16, 2026 @06:43PM (#50525231)
Arrow has no date type. No time type either! Using their recommended approach of "use datetimes for everything" is a poor representation of data in many scenarios and leads to surprise behavior. Chrono's sins, as enumerated in the Jiff documents, aren't on the same tier.

Unless you're talking about Arrow, the Apache Parquet interface library in either Python or Rust - that's a different matter; great software!

Re:Jiff 1.0: A datetime library for Rust by BrandoElFollito on Tuesday November 17, 2026 @04:47AM (#50529386)
I am trying to find a case where a time without a date would be useful. The only one I can think about are analog monotonic clocks.

In any other case I can think of, you need to attach the time to a date and a timezone. You can display it bare in the context of the viewer (who has an implicit or explicit timezone and time reference) but any manipulation without these will not end well.

Would you have some examples for the poor representation of data and surprise behaviour?

Re:Jiff 1.0: A datetime library for Rust by the__alchemist on Tuesday November 17, 2026 @07:14AM (#50530375)
What datetime is your birthday? What time is your Monday alarm clock set for?

There are so many, and sometimes Arrow/Moment's abstraction is OK. Other times it's awkward as it overconstrains. Sometimes it has surprising behavior.

Re:Jiff 1.0: A datetime library for Rust by GoblinSlayer on Wednesday November 18, 2026 @05:02AM (#50544263)
>What datetime is your annual birthday celebration?

Doesn't that belong to a scheduler library?