date-vir - v8.3.2
    Preparing search index...

    Type Alias FormatDurationOptions

    FormatDurationOptions: {
        abbreviate?: boolean;
        onlyLargestUnit?: boolean;
        sep?: string;
    } & LocaleOptions & RoundOptions

    Options for formatDuration.

    Type Declaration

    • Optionalabbreviate?: boolean

      If true, unit names are abbreviated.

      false
      
    • OptionalonlyLargestUnit?: boolean

      If true, only the largest unit with a defined value is included in the output.

      false
      
    • Optionalsep?: string

      The separator between each unit string.

      ' '