You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be great if arrow supported more human-readable date specifications like "next tuesday" or "previous year"... This is something only parsedatetime does right now, as far as I know.
anarcat@curie:undertime(main)$ python3
Python 3.9.2 (default, Feb 28 2021, 17:03:44)
[GCC 10.2.1 20210110] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import arrow
>>> arrow.__version__
'1.2.1'
>>> arrow.utcnow().dehumanize("next tuesday")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3/dist-packages/arrow/arrow.py", line 1421, in dehumanize
raise ValueError(
ValueError: Input string not valid. Note: Some locales do not support the week granulairty in Arrow. If you are attempting to use the week granularity on an unsupported locale, this could be the cause of this error.
>>>
The text was updated successfully, but these errors were encountered:
Feature Request
It would be great if arrow supported more human-readable date specifications like "next tuesday" or "previous year"... This is something only parsedatetime does right now, as far as I know.
The text was updated successfully, but these errors were encountered: