{# Formats for the watch pages #} {% macro hm(minutes) %}{% if minutes is none %}—{% else %}{% set m = minutes | round | int %}{{ m // 60 }}h {{ "%02d" | format(m % 60) }}m{% endif %}{% endmacro %} {% macro clock(h) %}{% if h is none %}—{% else %}{% set m = (h * 60) | round | int % 1440 %}{{ "%02d:%02d" | format((m // 60 + 12) % 24, m % 60) }}{% endif %}{% endmacro %}