time_duration - Liquid Filter Reference - 0.11.4
Filter Name | time_duration |
Group | Dates |
Version | 0.11.4 |
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 Liquid Reference for 0.11.4
Back to Documentation