Flarum (2.x)
    Preparing search index...
    • Express a number of seconds in the largest unit that divides it exactly.

      Exactly is the important part: 90 minutes stays 90 minutes rather than becoming 1.5 hours, because a fraction cannot be typed back into a field expecting whole units and would be lost on the next save.

      Parameters

      • seconds: number

      Returns Duration