Function DurationFilter

  • A filter used to format a time duration in seconds into a more readable form. Only the two largest units will be shown.

    Examples: {{42 | ngeoDuration}} => 42 seconds {{132 | ngeoDuration}} => 2 minutes 12 seconds {{3910 | ngeoDuration}} => 1 hour 5 minutes -> Note: the remaining 10 seconds will be dropped

    Returns

    Function used to format a time duration in seconds into a string.

    Ng Inject

    Ngdoc

    filter

    Ngname

    ngeoDuration

    Parameters

    • gettextCatalog: gettextCatalog

      Gettext catalog.

    Returns duration

Generated using TypeDoc