Angular 10 getLocaleTimeFormat()-Funktion
Das getLocaleTimeFormat wird verwendet, um die lokalisierte Zeitwertformatierung für das angegebene Gebietsschema abzurufen.
Syntax:
getLocaleTimeFormat(locale: string, width: FormatWidth): string
NgModule: Das von getLocaleTimeFormat verwendete Modul ist:
GemeinsamesModul
Sich nähern:
Erstellen Sie die zu verwendende Winkel-AppImportieren Sie in app.module.ts LOCALE_ID, da das Gebietsschema importiert werden muss, um get getLocaleTimeFormat zu verwenden.importiere { LOCALE_ID, NgModule } aus '@angular/core';Importieren Sie in app.component.ts getLocaleTimeFormat und LOCALE_IDFügen Sie....