Skip to content

Comment on Arrow: Better dates and times for Python

Comments

The library looks really nice usability wise.

The arrow.get function tries a bit too hard to be user-friendly ; it lets me wondering if a value could have an unexpected interpretation.

One use-case that seem to be missing is time deltas. There is a support for time iteration but I don't see a good way to transform two timestamps into a time interval.

One use-case that seem to be missing is time deltas.

I just fired up ipython and tried:

    >>> t1 = arrow.now()
    >>> t2 = arrow.now()
    >>> t2-t1
    datetime.timedelta(0, 4, 864716)
It appears the difference operator returns a datetime.timedelta object.
AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.