• Overview
@angular/common

getLocaleTimeFormat

function
deprecatedsince v18

Retrieves a localized time-value formatting string.

Deprecation warning

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

API

function getLocaleTimeFormat(locale: string, width: FormatWidth): string;
Jump to details