The toLocaleTimeString() method of the Date object returns a string with a geographic language representation of the time portion of the date in the local timezone.

    
    // Depending on timezone, your results will vary
    const event = new Date('August 19, 1975 23:15:30 GMT+00:00');

    const time = event.toLocaleTimeString('en-US');
    console.log(time);
    // "1:15:30 AM"

    const time1 = event.toLocaleTimeString('it-IT');
    console.log(time1);
    // "01:15:30"