Help Angular by taking a 1 minute survey!Go to surveyHome

getLocaleTimeFormat

Retrieves a localized time-value formatting string.

getLocaleTimeFormat(locale: string, width: FormatWidth): string
      
      getLocaleTimeFormat(locale: string, width: FormatWidth): string
    
Parameters
locale string

A locale code for the locale format rules to use.

width FormatWidth

The format type.

Returns

string: The localized formatting string.

See also