📅  最后修改于: 2022-03-11 14:49:23.505000             🧑  作者: Mango
var d = new Date();
var timeStamp = d.getTime(); // Number of ms since Jan 1, 1970
// OR:
var currentTime = d.toLocaleTimeString(); // "12:35 PM", for instance