JSFiddle - React, Tailwind, and code Playground

JavaScript

var date = new Date(); 
console.log(date.toTimeString().match(/\(([^)]+)\)/)[1]);