achieve the same goal by Date()

(new Date).toLocaleTimeString()