time_duration - Liquid Filter Reference - 1.0.0

Filter Name time_duration
Group Dates
Version 1.0.0

Description

Returns a time duration string for a given number of seconds

Examples

{{ "10" | time_duration }}
less than 20 seconds
{{ "50" | time_duration }}
less than a minute
{{ "3600" | time_duration }}
about 1 hour
{{ "18000" | time_duration }}
about 5 hours
{{ "259200" | time_duration }}
3 days
{{ "1209600" | time_duration }}
14 days
{{ "3628800" | time_duration }}
about 1 month

Back to Filter List

Back to Liquid Reference for 1.0.0

 

 
Back to Documentation