Function timeUnitToString

  • Time unit to lowercase string. If amount is specified, then the string is put in plural form if necessary.

    Parameters

    • unit: TimeUnit

      The unit

    • amount: number = 1

      If this is unequal to -1 and 1, then the result is pluralized

    Returns string

    Throws

    timezonecomplete.Argument.Unit for invalid time unit

Generated using TypeDoc