method Date.toLocaleTimeString
Private
Date.toLocaleTimeString(
locales?: string | string[],
): string

Converts a time to a string by using the current or specified locale.

Parameters

optional
locales: string | string[]

A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.

An object that contains one or more properties that specify comparison options.

Return Type

string