News for hackers. Stuff that matters.
Re:Arrow v1.0: After 8 years, even better dates and times fo... by jsilence on Saturday February 27, 2021 @01:19AM (#26283101)
How does Arrow compare to Pendulum?
Re:Arrow v1.0: After 8 years, even better dates and times fo... by qwertox on Saturday February 27, 2021 @03:32AM (#26283507)
Thanks for bringing this onto my radar. I've already settled with arrow, but when I can go without it, I combine datetime with pytz, which is so much faster at applying/changing timezones than arrow. I still need to check out 3.9's built-in timezones.
Re:Arrow v1.0: After 8 years, even better dates and times fo... by stigz on Saturday February 27, 2021 @01:56AM (#26283231)
I have only used Pendulum and skimmed Arrow's API just now.

Pendulum does more. It has tools for manipulating a date. Add days, compare to other dates, etc.

Arrow appears primarily focused on parsing and formatting.

Re:Arrow v1.0: After 8 years, even better dates and times fo... by mazatta on Saturday February 27, 2021 @02:10AM (#26283287)
No, Arrow is much more than parsing/formatting.

Each Arrow object has a `shift` method, which is how you can add or subtract units of time. Greater/less/equal comparisons work exactly as you'd expect them to.

Re:Arrow v1.0: After 8 years, even better dates and times fo... by neolog on Saturday February 27, 2021 @01:29AM (#26283139)
Pendulum is better