arrow-py / arrow

๐Ÿน Better dates & times for Python
https://arrow.readthedocs.io
Apache License 2.0
8.73k stars 684 forks source link

enhanced humanize() #1199

Open psyuktha opened 1 month ago

psyuktha commented 1 month ago

Pull Request Checklist

Description of Changes

This PR updates the humanize functionality in the arrow library to provide more specific relative time outputs, such as "Yesterday" and "Tomorrow," instead of the generic "a day ago" or "in a day" when the difference is exactly one day as stated in the issue #1125 . This update enhances readability and user experience by providing more natural language responses for day-to-day time differences.

codecov[bot] commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 100.00%. Comparing base (403c29f) to head (cd878fb). Report is 9 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #1199 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 10 10 Lines 2324 2329 +5 Branches 357 359 +2 ========================================= + Hits 2324 2329 +5 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

psyuktha commented 1 month ago

@krisfremen could you review the changes?