# format\_duration

Source: https://zotonic.com/docs/2189/format_duration

URI: https://zotonic.com/id/2189

Language: en



Show a duration in hours, minutes and seconds.

Takes as input a number representing a number of seconds. Outputs a human readable form.

For example:

```django
{{ 123|format_duration }}
```

Will ouput `2m3s`.

And:

```django
{{ 3601|format_duration }}
```

Will ouput `1h0m1s`.

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/2189?language=en


## API access

- [API help](<https://zotonic.com/api-help>)
- [OpenAPI specification](<https://zotonic.com/openapi.json>)
- [This resource as JSON](<https://zotonic.com/api/agent/resource/2189?language=en>)
