Function formatTime

Formats a time according to the current language and context.

  • Parameters

    • Optionalcontext: string

      The context of the time.

    Returns string

    The formatted time.