Returns a string with a locale-sensitive representation of the time.
Syntax
date.toLocaleTimeString(locale, options?)Example
Enter values below to update the example in real time.
const→new→console→toLocaleTimeString→const date = new Date();
console.log(date.toLocaleTimeString("ko-KR"));
// e.g. "오후 3:45:30"