MCPcopy Create free account
hub / github.com/angular/angular / getLocaleTimeFormat

Function getLocaleTimeFormat

packages/common/src/i18n/locale_data_api.ts:452–455  ·  view source on GitHub ↗
(locale: string, width: FormatWidth)

Source from the content-addressed store, hash-verified

450 * Use `Intl.DateTimeFormat` for date formating instead.
451 */
452export function getLocaleTimeFormat(locale: string, width: FormatWidth): string {
453 const data = ɵfindLocaleData(locale);
454 return getLastDefinedValue(data[ɵLocaleDataIndex.TimeFormat], width);
455}
456
457/**
458 * Retrieves a localized date-time formatting string.

Callers 1

getNamedFormatFunction · 0.90

Calls 1

getLastDefinedValueFunction · 0.85

Tested by

no test coverage detected