filter_format_duration (zotonic_mod_base v1.0.0-rc.17)

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:

{{ 123|format_duration }}

Will ouput 2m3s.

And:

{{ 3601|format_duration }}

Will ouput 1h0m1s.

See also

format_number, format_integer, format_price

Summary

Functions

format_duration/2