• Overview
@angular/common

getLocaleTimeFormat

function
Deprecated

Retrieves a localized time-value formatting string.

  
    function getLocaleTimeFormat(  locale: string,  width: FormatWidth): string;
  
  

getLocaleTimeFormat

string

Retrieves a localized time-value formatting string.

@deprecated

Angular recommends relying on the Intl API for i18n. Use Intl.DateTimeFormat for date formating instead.

@paramlocalestring

A locale code for the locale format rules to use.

@paramwidthFormatWidth

The format type.

@returnsstring
Jump to details