sdispater / pendulum

Python datetimes made easy
https://pendulum.eustace.io
MIT License
6.12k stars 372 forks source link

Pluralization bug with Duration.in_words() #826

Open Solipsistmonkey opened 1 month ago

Solipsistmonkey commented 1 month ago

I noticed that Duration(milliseconds=10).in_words() would return 0.01 second when it should be 0.01 seconds. So I fixed that but also realized that sometimes people might want a bit more precision so I added a keyword arg seconds_n_digits with a default value of 2.