upvote
I shouldn't have used the word sucked -- personal jargon that I use all the time to describe my own code and try not to apply to other people's -- it was created pre-1.0 and we learned a lot as a community in the 10 years you spent building it.

Thank you so much for building something that was obviously good enough to sustain the community for 12 years <3

reply
As someone who has worked with implementing date/time functionality before, I'm empathize. Getting APIs "right" is hard, and getting it wrong is easy because there's so many ways to get it wrong. Especially when you start getting into something like handling something like daylight saving time, which is inherently political and changes arbitrarily over time. I've spent most of my career in finance. I distinctly remember near shouting matches over what it meant to add "1 day" to a datetime. Does it mean adding 24 hours? Or, does it mean give me the same time of day tomorrow? What happens if tomorrow is the other side of a DST change? These seems like trivial questions, but matter if you're talking about, say physical delivery of oil or gas at a set rate per hour.
reply
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.
reply
Why is it so much better than, say, Arrow?
reply
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!

reply