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

    Type Alias DurationUnitStringOptions

    DurationUnitStringOptions: {
        abbreviate?: boolean;
        count: number;
        unit: DurationUnit | DateUnit;
    } & LocaleOptions & RoundOptions

    Options for getDateUnitString.

    Type Declaration

    • Optionalabbreviate?: boolean

      If true, abbreviates the unit name.

      false
      
    • count: number

      The count of the given unit.

    • unit: DurationUnit | DateUnit