Function timeFormat

  • Returns a new formatter for the given string specifier. The returned function formats a specified date, returning the corresponding string.

    An alias for locale.format (TimeLocaleObject.format) on the default locale.

    Parameters

    • specifier: string

      A specifier string for the date format.

    Returns ((date) => string)

      • (date): string
      • Parameters

        Returns string