---
title: '|naturaltime'
description: says how long ago a datetime was.
date: '2026-08-21'
categories:
  - Filter
  - Date and Time
canonical: https://coolify.djangotemplatetagsandfilters.com/filters/naturaltime/
doc_link: >-
  https://docs.djangoproject.com/en/6.1/ref/contrib/humanize/#std-templatefilter-naturaltime
---

# |naturaltime

says how long ago a datetime was.

## Documentation

Turns a datetime into how far it is from now, in the phrasing a person would use.

### Template

```django
{% load humanize %}
<p>Last seen {{ user.last_login|naturaltime }}</p>
```

### Result

```django
<p>Last seen 29 seconds ago</p>
```

Future datetimes are phrased forwards — “an hour from now” — so it reads correctly either side of the present. Unlike `timesince`, it needs no second argument and handles the “now” case itself.
