MCPcopy Index your code
hub / github.com/angular/angular / getLocaleDateTimeFormat

Function getLocaleDateTimeFormat

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

Source from the content-addressed store, hash-verified

454 * Use `Intl.DateTimeFormat` for date formating instead.
455 */
456export function getLocaleDateTimeFormat(locale: string, width: FormatWidth): string {
457 const data = ɵfindLocaleData(locale);
458 const dateTimeFormatData = <string[]>data[ɵLocaleDataIndex.DateTimeFormat];
459 return getLastDefinedValue(dateTimeFormatData, width);
460}
461
462/**
463 * Retrieves a localized number symbol that can be used to replace placeholders in number formats.

Callers 1

getNamedFormatFunction · 0.90

Calls 1

getLastDefinedValueFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…