I know there's timesince
filter.
But I want something that returns this:
Examples:
How can I implement something like this?
Not sure if it ticks all your boxes, but there's a tag naturaltime in the django.contrib.humanize template tags that should do this:
https://docs.djangoproject.com/en/dev/ref/contrib/humanize/#naturaltime
settings.py
INSTALLED_APPS = {
...
'django.contrib.humanize',
}
template.html
{% load humanize %}
{{ model.timefield|naturaltime }}