Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing year on older dates #2

Closed
nephics opened this issue Apr 11, 2012 · 0 comments
Closed

Missing year on older dates #2

nephics opened this issue Apr 11, 2012 · 0 comments

Comments

@nephics
Copy link

nephics commented Apr 11, 2012

If a date is more than a year in the past, the year (number) should be included in the humanized date.
Current (broken) functionality:

>>> import datetime
>>> import humanize
>>> humanize.naturalday(datetime.datetime.now() - datetime.timedelta(days=10))
'Apr 01'
>>> humanize.naturalday(datetime.datetime.now() - datetime.timedelta(days=1000))
'Jul 16'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants