What did you do?
I passed a small negative integer value to naturaldelta
, it reports "a day".
What did you expect to happen?
I expect naturaldelta
to roughly match naturaltime
. Else, if negative values are not supported, it should be documented.
What actually happened?
import humanize
print(humanize.naturaldelta(-1))
print(humanize.naturaltime(-1))
shows:
What versions are you using?
- OS:
Linux LCARS2 5.17.4-200.fc35.x86_64 #1 SMP PREEMPT Wed Apr 20 15:37:53 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
- Python: 3.9.12
- Humanize: 4.1.0